We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6aa3a7d commit aaac434Copy full SHA for aaac434
lib/utils/spec-manager.ts
@@ -189,7 +189,7 @@ export class SpecManager {
189
// check if parent definition name is in the enum of possible values
190
if (definition.discriminator) {
191
let prop = definition.properties[definition.discriminator];
192
- if (prop.enum && prop.enum.indexOf(JsonPointer.baseName(defPointer)) > -1) {
+ if (prop && prop.enum && prop.enum.indexOf(JsonPointer.baseName(defPointer)) > -1) {
193
res.push({
194
name: JsonPointer.baseName(defPointer),
195
$ref: defPointer
0 commit comments