influxdata / openapi

An OpenAPI specification for influx (cloud/oss) apis.
MIT License
17 stars 10 forks source link

fix: unintentional payload object mappings for checks and notification endpoints #630

Open jstirnaman opened 1 year ago

jstirnaman commented 1 year ago

Redoc before (current prod): prod-cloud-postcheck

Redoc after: local-cloud-postcheck

This error from @redocly/cli split alerted me and helped me pinpoint the problem:

/usr/local/lib/node_modules/@redocly/cli/lib/commands/split/index.js:167
    const discriminatorPropSchema = obj.properties[obj.discriminator.propertyName];
                                                  ^

TypeError: Cannot read properties of undefined (reading 'type')
    at implicitlyReferenceDiscriminator (/usr/local/lib/node_modules/@redocly/cli/lib/commands/split/index.js:167:51)
jstirnaman commented 1 year ago

@glinton @sanderson