yndlingsfar / serverless-openapi-integration-helper

The plugin separates x-amazon-apigateway extension syntax from your openapi3 files
MIT License
6 stars 5 forks source link

Multiple Path Mapping Per Stage #26

Open jjkirby opened 1 year ago

jjkirby commented 1 year ago

Right now the mapping limits one path (string) per stage. We want the path mapping to be an array. Why? We use a monorepo construct that uses a hierarchy of Version/Namespaced APIs to contain our openapi.yml files. We also have a "commons" directory containing reusable or "common" schemas such as error DTOs. What we would like to do is in the paths mapping have the ability to provide a list of what specific common references to include. That list could be to a directory (all files in that) or a specific file.

The other option is have a yaml file in the integrations directory (path) that has a list of $ref entries that would be fetched