Files
openapi-generator/docs
scarf f7ac63a188 feat(normalizer): add SORT_MODEL_PROPERTIES rule for deterministic output (#22836)
Add new OpenAPINormalizer rule SORT_MODEL_PROPERTIES that sorts schema
properties alphabetically by name. This ensures deterministic code
generation output regardless of property ordering in the source spec.

The rule:
- Uses TreeMap to sort properties by natural string order
- Applies at the OpenAPI normalization stage, working for all generators
- Is opt-in (defaults to false) to maintain backward compatibility

Usage:
  openapi-generator generate --openapi-normalizer SORT_MODEL_PROPERTIES=true ...

Fixes non-deterministic property ordering that could cause spurious diffs
in generated code when the source schema order varies.
2026-01-28 17:36:18 +08:00
..
2023-06-02 20:59:18 +08:00
2024-04-24 15:34:02 +08:00
2020-05-31 23:03:12 +08:00
2025-06-03 15:26:46 +08:00
2026-01-21 03:48:12 +08:00
2020-02-11 21:22:58 +08:00