happyDeliver/api/config-models.yaml
Pierre-Olivier Mercier 396c51974a
All checks were successful
continuous-integration/drone/push Build is passing
Extract OpenAPI schemas to separate file and move models to internal/model package
Split api/openapi.yaml schemas into api/schemas.yaml so structs can be
generated independently from the API server code. Models now generate
into internal/model/ via oapi-codegen, with the server referencing them
through import-mapping. Moved PtrTo helper to internal/utils and removed
storage.ReportSummary in favor of model.TestSummary.
2026-04-09 18:36:27 +07:00

9 lines
171 B
YAML

package: model
generate:
models: true
embedded-spec: true
output: internal/model/types.gen.go
output-options:
skip-prune: true
import-mapping:
./schemas.yaml: "-"