Commit c59f1ef
committed
feat: make schema hash in header comment opt-in via -schemaHash
The schema hash in the OpenAPI header comment changes on every schema edit,
producing perpetual git merge conflicts in the generated YAML.
Gate the hash behind a new -schemaHash target option (default false), flipping
the previous always-on behavior:
- default: header comment carries only the name and version (no hash). The
"Code generated by ... DO NOT EDIT." line stays.
- with -schemaHash: restores today's output exactly (hash in the header).
This generator emits only a header comment (no version helper functions or
constants exist here), so the gate is comment-only. Mirrors the sibling
gen-golang change.
Regenerated _examples to reflect the new default.1 parent fc1bff5 commit c59f1ef
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
68 | | - | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments