-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Experimental OpenAPI 3.1 missing output options include-tags #2200
Description
The new OpenAPI 3.1 implementation (from #2197) seems to be missing some equivalents for the old output-options, such as include-tags, and I believe also every other option seen here: https://github.com/oapi-codegen/oapi-codegen?tab=readme-ov-file#how-can-i-ignore-parts-of-the-spec-i-dont-care-about. Due to the runtime being removed and the helpers being generated in-package, are there plans to drop this package splitting strategy?
My use case is the following: I have an OpenAPI schema, with different tags for different resources. Now I can no longer split them into separate packages due to removal of the include-tags output option.
Also an unrelated issue, but worth mentioning, specifying an URL to a schema in the go:generate comment no longer works either, for example:
package keycloak
//go:generate go tool oapi-codegen -config config.yml https://www.keycloak.org/docs-api/latest/rest-api/openapi.yamlGives the following error: error reading spec: open https://www.keycloak.org/docs-api/latest/rest-api/openapi.yaml: no such file or directory. In the stable version it fetches the schema and generates the code properly.