mirror of
https://github.com/Redocly/redoc.git
synced 2025-04-04 00:44:17 +03:00
Don't show enum info for discriminator field
This commit is contained in:
parent
fc86c93d87
commit
b097f1fdfa
|
@ -80,7 +80,10 @@ export default class JsonSchema extends BaseComponent {
|
|||
}
|
||||
propertySchema.required = !!requiredMap[prop];
|
||||
propertySchema.isDiscriminator = (schema.discriminator === prop);
|
||||
if (propertySchema.isDiscriminator) discriminatorFieldIdx = idx;
|
||||
if (propertySchema.isDiscriminator) {
|
||||
discriminatorFieldIdx = idx;
|
||||
propertySchema.enum = null;
|
||||
}
|
||||
return propertySchema;
|
||||
});
|
||||
// Move discriminator field to the end of properties list
|
||||
|
|
Loading…
Reference in New Issue
Block a user