The Go test cache does not recheck files outside the module root, so
editing only openapi.yaml or swagger.yaml could reuse a cached
TestCheckedInSwagger result and miss a stale projection in a
persistent development container.
Pass -count=1 to disable caching.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Add a Go converter in a separate tooling module and reintroduce
swagger.yaml as generated Swagger 2.0 output. Preserve schema property
order, examples, and generator extensions, and reject unsupported
constructs. Use the union of response media types for Swagger's
operation-wide produces lists.
Leave historical versioned specifications and generated Go models
unchanged.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
yamllint does not report invalid indentation.
libfyaml passes the yaml test suite and catches these issues.
not replacing yamllint to preserve existing style rules.
Signed-off-by: Florian Stellbrink <flo@stellbr.ink>
The model validator changed into a temporary directory, but the
generator derived its output directory from its script location and
still wrote into the source tree.
Accept an optional API-directory argument and pass the temporary
module directory during validation.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>