Relative Content

Tag Archive for aws-api-gatewayopenapiswagger-ui

AWS CDK API GW Model JsonSchema

I’m using OAS3.0 to define the schema for the API GW Model construct schema property. Works well except for this use case.
I have a request payload, where one property’s type depends on the value of another.
So in OAS3.0, we end up with a “oneOf” array with a discriminator defined who’s value determines which type to use in the “oneOf” array.
I can’t deploy this to CDK as i get an error on use of the discriminator property.

How to add CORS header to response for swagger ui

I’m getting unable to fetch message in swagger UI when I’m calling the below AWS API gateway url via swagger docs locally.The CORS has been enabled on the server, however it’s only erroring out on swagger UI. The same Curl req is executing fine locally.