Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/docs/module.doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,13 @@ paths:
description: Metadata for the hivemind module on Notion.
- type: object
properties:
pageIds:
namespaces:
type: array
items:
type: string
type: number
default: [0]
activated:
type: boolean
description: Metadata for the hivemind module on MediaWiki.
- type: object
description: Metadata for the hivemind module on website.
Expand Down
5 changes: 3 additions & 2 deletions src/docs/platform.doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,16 +165,17 @@ paths:
type: string
description: Metadata for Notion.
- type: object
required: [baseURL, path, namespaces]
required: [baseURL, path]
properties:
baseURL:
type: string
path:
type: string
namespaces:
type: array
type: array
items:
type: number
default: [0]
description: Metadata for MediaWiki.
- type: object
required: [id, period, analyzerStartedAt, resources]
Expand Down
1 change: 1 addition & 0 deletions src/validations/module.validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ const hivemindNotionMetadata = () => {

const hivemindMediaWikiMetadata = () => {
return Joi.object().keys({
namespaces: Joi.array().items(Joi.number()).default([0]),
activated: Joi.boolean(),
});
};
Expand Down
4 changes: 2 additions & 2 deletions src/validations/platform.validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const mediaWikiUpdateMetadata = () => {
return Joi.object().keys({
baseURL: Joi.string().required(),
path: Joi.string().required(),
namespaces: Joi.array().items(Joi.number()).required(),
namespaces: Joi.array().items(Joi.number()).default([0]),
});
};

Expand Down Expand Up @@ -94,7 +94,7 @@ const mediaWikiMetadata = () => {
return Joi.object().keys({
baseURL: Joi.string().required(),
path: Joi.string().required(),
namespaces: Joi.array().items(Joi.number()).required(),
namespaces: Joi.array().items(Joi.number()).default([0]),
});
};

Expand Down