webapp-scaffold/bin
Uwe Schuster 8677faf54b postprocess-openapi: also fix type: Any and duplicate params
Two more oatpp 1.3 spec quirks surfaced when fewo-webapp's #469
increment 2 wired up Orval's strict Zod codegen on top of the v0.4.1
`required: []` strip:

- `"type": "Any"` is emitted for `oatpp::Any` / `oatpp::Fields` fields.
  OpenAPI 3.0 has no "Any" type — the empty schema `{}` (or absence of
  `type`) is the canonical "any value" form. Strip the offending key
  recursively across the whole spec.
- Some endpoints emit the same path parameter twice (same `name` + same
  `in: path`). Dedupe by `(name, in)` preserving first occurrence.

These were caught only by `@scalar/openapi-parser`'s strict mode (used by
Orval's Zod project); the fetch-client project tolerated them. Without
both fixes, fewoZod fails with `must NOT have duplicate items` and
`must match exactly one schema in oneOf` per affected component.

Bumps to v0.4.2.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 21:25:49 +02:00
..
fetch-openapi.sh #2: fetch-openapi.sh — pass $OUT via sys.argv, not f-string in heredoc 2026-04-25 21:34:02 +02:00
inject-hashed-filenames.py #3: inject-hashed-filenames.py — tag-aware HTML rewrite 2026-04-25 21:38:19 +02:00
postprocess-openapi.py postprocess-openapi: also fix type: Any and duplicate params 2026-05-05 21:25:49 +02:00