mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +03:00
parent
6aa3a7d863
commit
aaac434ebb
|
@ -189,7 +189,7 @@ export class SpecManager {
|
||||||
// check if parent definition name is in the enum of possible values
|
// check if parent definition name is in the enum of possible values
|
||||||
if (definition.discriminator) {
|
if (definition.discriminator) {
|
||||||
let prop = definition.properties[definition.discriminator];
|
let prop = definition.properties[definition.discriminator];
|
||||||
if (prop.enum && prop.enum.indexOf(JsonPointer.baseName(defPointer)) > -1) {
|
if (prop && prop.enum && prop.enum.indexOf(JsonPointer.baseName(defPointer)) > -1) {
|
||||||
res.push({
|
res.push({
|
||||||
name: JsonPointer.baseName(defPointer),
|
name: JsonPointer.baseName(defPointer),
|
||||||
$ref: defPointer
|
$ref: defPointer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user