feat(xo-server/api): explicitely allow $type and enumNames in schemas

This commit is contained in:
Julien Fontanet 2021-04-09 11:16:17 +02:00
parent 3cc9fd2782
commit b4fbe8df07

View File

@ -15,7 +15,7 @@ export default class {
this._ajv = new Ajv({
strict: 'log',
useDefaults: true,
})
}).addVocabulary(['$type', 'enumNames'])
this._plugins = { __proto__: null }
this._pluginsMetadata = new PluginsMetadata({