mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-16 18:00:33 +03:00
Fix additionalProperties: true crash
This commit is contained in:
parent
46a44f3f6c
commit
8d039af839
|
@ -181,7 +181,7 @@ export class SchemaHelper {
|
|||
|
||||
props = props || [];
|
||||
|
||||
if (schema.additionalProperties && schema.additionalProperties !== false) {
|
||||
if (schema.additionalProperties && (typeof schema.additionalProperties === 'object')) {
|
||||
let propsSchema = SchemaHelper.preprocessAdditionalProperties(schema, pointer);
|
||||
propsSchema._additional = true;
|
||||
props.push(propsSchema);
|
||||
|
|
|
@ -91,7 +91,8 @@ if (process.env.JOB === 'e2e-guru') {
|
|||
delete apisGuruList['googleapis.com:mirror']; // bad urls in images
|
||||
delete apisGuruList['googleapis.com:discovery']; // non-string references
|
||||
delete apisGuruList['clarify.io']; // non-string references
|
||||
delete apisGuruList['pushpay.com']; // https://github.com/Rebilly/ReDoc/issues/30
|
||||
//delete apisGuruList['pushpay.com']; // https://github.com/Rebilly/ReDoc/issues/30
|
||||
delete apisGuruList['bbci.co.uk']; // too big
|
||||
|
||||
// run quick version of e2e test on all builds except releases
|
||||
if (process.env.TRAVIS && !process.env.TRAVIS_TAG) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user