-
Notifications
You must be signed in to change notification settings - Fork 18
Description
Hi, I get an error when I try to convert the schema attached
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["css", "js", "i18n", "json"]
},
"locale": {
"type": "string"
}
},
"if": {
"properties": {
"type": {
"const": "i18n"
}
}
},
"then": {
"required": ["locale"]
}
}
TypeError: Cannot convert undefined or null to object
at stripIllegalKeywords (/home/nathalie/projects/focus/test-open-api/node_modules/@openapi-contrib/json-schema-to-openapi-schema/index.js:48:2)
at convertSchema (/home/nathalie/projects/focus/test-open-api/node_modules/@openapi-contrib/json-schema-to-openapi-schema/index.js:55:11)
at _apply (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:270:14)
at Object._processArrayOfSchemas (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:173:5)
at _processSchemaKeyword (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:146:24)
at subschemaWalk (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:102:7)
at _apply (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:283:3)
at Object._processArrayOfSchemas (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:173:5)
at _processSchemaKeyword (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:146:24)
at subschemaWalk (/home/nathalie/projects/focus/test-open-api/node_modules/@cloudflare/json-schema-walker/lib/schemaWalk.js:102:7)