mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
Fix additionalProperties was broken
This commit is contained in:
parent
bff4b80845
commit
919f0c380d
|
@ -88,12 +88,12 @@ const injectors = {
|
|||
itemSchema._pointer = itemSchema._pointer || JsonPointer.join(itemsPtr, [i.toString()]);
|
||||
}
|
||||
injectTo._widgetType = 'tuple';
|
||||
// SchemaHelper.runInjectors(injectTo, propertySchema.items, propPointer);
|
||||
}
|
||||
},
|
||||
object: {
|
||||
check: (propertySchema) => {
|
||||
return propertySchema.type === 'object' && propertySchema.properties;
|
||||
return propertySchema.type === 'object' && (propertySchema.properties ||
|
||||
typeof propertySchema.additionalProperties === 'object')
|
||||
},
|
||||
inject: (injectTo, propertySchema = injectTo) => {
|
||||
let baseName = propertySchema._pointer && JsonPointer.baseName(propertySchema._pointer);
|
||||
|
|
|
@ -97,7 +97,7 @@
|
|||
"hint.css": "^2.3.2",
|
||||
"json-pointer": "^0.5.0",
|
||||
"json-schema-ref-parser": "^3.1.2",
|
||||
"openapi-sampler": "^0.2.0",
|
||||
"openapi-sampler": "^0.3.0",
|
||||
"prismjs": "^1.5.1",
|
||||
"remarkable": "^1.6.2",
|
||||
"rxjs": "5.0.0-beta.6",
|
||||
|
|
Loading…
Reference in New Issue
Block a user