Skip to content

Commit

Permalink
Add x-discriminator-is-enum on required schemas
Browse files Browse the repository at this point in the history
Schemas with an Enum value as discriminator must be marked with
`x-discriminator-is-enum` property in order to be correctly processed by
swagger-codegen
  • Loading branch information
Carlos Bouzón García committed Feb 6, 2020
1 parent 8f8f701 commit 24c7883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions definitions/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,7 @@ ActionMapping:
OutgoingCallbackNew:
type: object
discriminator: callback-type
x-discriminator-is-enum: true
properties:
alertFilter:
$ref: '#/definitions/AlertFilter'
Expand Down Expand Up @@ -657,6 +658,7 @@ BaseWebhookCallback:
OutgoingCallback:
type: object
discriminator: callback-type
x-discriminator-is-enum: true
properties:
alertFilter:
$ref: '#/definitions/AlertFilter'
Expand Down Expand Up @@ -1810,6 +1812,7 @@ Integration:
BaseIncomingFeature:
type: object
discriminator: feature-type
x-discriminator-is-enum: true
properties:
suppressNotifications:
description: If enabled, notifications that come from alerts will be suppressed. Defaults to false
Expand Down
3 changes: 3 additions & 0 deletions swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -15014,6 +15014,7 @@
"OutgoingCallbackNew": {
"type": "object",
"discriminator": "callback-type",
"x-discriminator-is-enum": true,
"properties": {
"alertFilter": {
"$ref": "#/definitions/AlertFilter"
Expand Down Expand Up @@ -15147,6 +15148,7 @@
"OutgoingCallback": {
"type": "object",
"discriminator": "callback-type",
"x-discriminator-is-enum": true,
"properties": {
"alertFilter": {
"$ref": "#/definitions/AlertFilter"
Expand Down Expand Up @@ -16889,6 +16891,7 @@
"BaseIncomingFeature": {
"type": "object",
"discriminator": "feature-type",
"x-discriminator-is-enum": true,
"properties": {
"suppressNotifications": {
"description": "If enabled, notifications that come from alerts will be suppressed. Defaults to false",
Expand Down

0 comments on commit 24c7883

Please sign in to comment.