Open
Description
This is a note for awareness. 'anyOf' definition is not supported in AWS API Gateway.
A workaround is to pre-process the interface spec to remove the anyOf structure.
https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-known-issues.html
Also note that for 'anyOf', neither swagger nor OpenAPI generators (openapi-generator-cli-4.3.1, swagger-codegen-cli-3.2.0 and 3.2.1) create correct code for the language spring. I didn't test other languages.
OpenAPI Codegen had issues with inheritance which appear to be closed for some languages but other languages seem to be lacking contributors. OpenAPITools/openapi-generator#2845
It seems that anyOf is being used so that industry can augment the spec which makes sense.
Metadata
Metadata
Assignees
Labels
No labels