Skip to content

Commit

Permalink
Merge pull request #736 from gisaia/feature/fixSchemaJson
Browse files Browse the repository at this point in the history
Feat: fix schema json
  • Loading branch information
mbarbet authored Mar 7, 2024
2 parents 1223195 + 293e794 commit 5bf215e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@
}
}
]
},
"additionalProperties": false
}
},
"filters_shortcuts": {
"description": "List of shortcut widgets to filter data",
Expand Down Expand Up @@ -368,6 +367,7 @@
"type": "object",
"patternProperties": {
"^(share)$": {
"type": "object",
"patternProperties": {
"^(geojson)$": {
"description": "Configuration of arlas share component",
Expand Down Expand Up @@ -644,7 +644,6 @@
}
}
}

},
"required": [
"web",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
},
"persistence": {
"description": "Configuration of ARLAS-persistence server",
"type": "object",
"properties": {
"url": {
"type": "string",
Expand All @@ -131,6 +132,7 @@
},
"permission": {
"description": "Configuration of ARLAS-permission server",
"type": "object",
"properties": {
"url": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class ArlasStartupService {

public validateSettings(settings) {
return new Promise<any>((resolve, reject) => {
const ajvObj = new Ajv();
const ajvObj = new Ajv({allowUnionTypes:true});
ajvKeywords(ajvObj, 'uniqueItemProperties');
const validateConfig = ajvObj
.addMetaSchema(draftSchema.default)
Expand All @@ -233,7 +233,7 @@ export class ArlasStartupService {

public validateConfiguration(data) {
return new Promise<any>((resolve, reject) => {
const ajvObj = new Ajv();
const ajvObj = new Ajv({allowUnionTypes:true});
ajvKeywords(ajvObj, 'uniqueItemProperties');
const validateConfig = ajvObj
.addMetaSchema(draftSchema.default)
Expand Down

0 comments on commit 5bf215e

Please sign in to comment.