Commit ace5f45
authored
Consolidate bundle schema annotations into a single tree-structured file (#5574)
## Changes
- Replace the three type-name-keyed annotation files
(`annotations_openapi.yml`, `annotations_openapi_overrides.yml`,
`annotations.yml`) with one `annotations.yml` structured like the bundle
config tree.
- Derive upstream docs (descriptions, enums, launch stages, field
behaviors) from `.codegen/cli.json` in memory at generation time,
instead of checking in ~7k lines of generated YAML. The file now holds
only CLI-owned docs and overrides.
- Structural keys are `$type`/`$fields`; absent entries inherit from
cli.json, and `description: PLACEHOLDER` flags undocumented fields.
- `task generate-schema` keeps the file in lockstep with the config
structure: it adds placeholders for new fields and drops entries for
fields the schema no longer emits.
## Why
The old files duplicated cli.json data that went stale between
regenerations and were keyed by Go type name, which hid where a field
actually lives. One structured file gives a single place for CLI-owned
docs, no duplicated upstream content, and a layout that reads like the
config it documents.
## Tests
- `bundle/schema/jsonschema.json` and `jsonschema_for_docs.json` are
byte-for-byte identical to `main` — this is purely an internal
representation change.
- New unit tests for the type graph and the file codec; existing
annotation tests carried over.
_This PR was written by Isaac._1 parent 0437746 commit ace5f45
17 files changed
Lines changed: 3380 additions & 10855 deletions
File tree
- .agent/rules
- bundle/internal
- annotation
- schema
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
| |||
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
75 | | - | |
| 73 | + | |
76 | 74 | | |
77 | 75 | | |
78 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
856 | 856 | | |
857 | 857 | | |
858 | 858 | | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
867 | | - | |
868 | | - | |
869 | | - | |
870 | | - | |
871 | | - | |
872 | | - | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
881 | | - | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
882 | 864 | | |
883 | 865 | | |
884 | | - | |
885 | 866 | | |
886 | 867 | | |
887 | | - | |
| 868 | + | |
| 869 | + | |
888 | 870 | | |
889 | 871 | | |
890 | 872 | | |
| |||
893 | 875 | | |
894 | 876 | | |
895 | 877 | | |
896 | | - | |
| 878 | + | |
897 | 879 | | |
898 | 880 | | |
899 | 881 | | |
900 | | - | |
901 | 882 | | |
902 | 883 | | |
903 | 884 | | |
| |||
908 | 889 | | |
909 | 890 | | |
910 | 891 | | |
911 | | - | |
| 892 | + | |
912 | 893 | | |
913 | 894 | | |
914 | 895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
12 | 11 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
19 | 15 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
35 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
36 | 26 | | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
44 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
This file was deleted.
0 commit comments