apache / incubator-kie-tools

Tools for KIE
Apache License 2.0
252 stars 185 forks source link

kie-issues#2718: [kn-plugin-workflow] Minify the openAPI spec files to trim components/schemas #2749

Open treblereel opened 1 week ago

treblereel commented 1 week ago

issue: https://github.com/apache/incubator-kie-tools/issues/2718

treblereel commented 1 week ago

Path declarations may contain $ref references, which in turn may refer to other declarations. Therefore, before removing them, it is necessary to identify all declarations that the desired operationId depends on. A special case is securitySchemes; if they are present in the document, they should be retained since the reference to them occurs implicitly.