Open
Description
A single swagger-file might:
- be shared between several front-ends, each of which use different parts of it;
- contain endpoints not meant to be consumed by any front-end, but rather used for web hooks etc.
Currently there is no way to restrict which definitions and paths/endpoints will be used for model+service generation, i.e. some of them might be superfluous for a given front-end. It would be nice to have (at least) one of the following features:
- A program option allowing to specify a pattern (PCRE?) that has to be matched by an endpoint's path -- otherwise the path is not generated into a service method. Definitions unused by any of the matching paths should not be generated into models either.
- Recognition of a custom non-standard flag (e.g. something like
x-acg-omit: true
) used to tag an endpoint (= [path, HTTP-method]). The result would, again, be the omission of the given endpoint and consequently unused definitions.
Does it sound reasonable?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To do