openapi-explorer 2.2.717 → 2.2.719
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -372,7 +372,11 @@ export function schemaInObjectNotation(rawSchema, options, level = 0, suffix = '
|
|
372
372
|
}
|
373
373
|
});
|
374
374
|
const obj = schemaInObjectNotation(schema, options, 0);
|
375
|
-
|
375
|
+
const resultObj = typeof obj === 'object' && !Array.isArray(obj) ? obj : {};
|
376
|
+
// These are the only valuable properties from allOf, everything else isn't going to be available, otherwise fallback to whatever was there from the children objects
|
377
|
+
resultObj['::title'] = schema.title || resultObj['::title'];
|
378
|
+
resultObj['::description'] = schema.description || resultObj['::description'];
|
379
|
+
return Object.assign({}, objWithAllProps, resultObj);
|
376
380
|
}
|
377
381
|
if (anyOf || oneOf) {
|
378
382
|
const objWithAnyOfProps = {};
|
@@ -381,7 +381,11 @@ function schemaInObjectNotation(rawSchema, options, level = 0, suffix = '') {
|
|
381
381
|
}
|
382
382
|
});
|
383
383
|
const obj = schemaInObjectNotation(schema, options, 0);
|
384
|
-
|
384
|
+
const resultObj = typeof obj === 'object' && !Array.isArray(obj) ? obj : {};
|
385
|
+
// These are the only valuable properties from allOf, everything else isn't going to be available, otherwise fallback to whatever was there from the children objects
|
386
|
+
resultObj['::title'] = schema.title || resultObj['::title'];
|
387
|
+
resultObj['::description'] = schema.description || resultObj['::description'];
|
388
|
+
return Object.assign({}, objWithAllProps, resultObj);
|
385
389
|
}
|
386
390
|
if (anyOf || oneOf) {
|
387
391
|
const objWithAnyOfProps = {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "openapi-explorer",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.719",
|
4
4
|
"description": "OpenAPI Explorer - API viewer with dynamically generated components, documentation, and interaction console",
|
5
5
|
"author": "Authress Developers <developers@authress.io>",
|
6
6
|
"type": "module",
|