Commit 8189f8c
committed
Filter OpenAPI enum values by launch stage to prevent flip-flopping
## Changes
Filter out enum values with DEVELOPMENT or PRIVATE_PREVIEW launch stages
when extracting annotations from the OpenAPI spec. Only values with GA,
PUBLIC_PREVIEW, or PUBLIC_BETA stages are included in the generated schema.
## Why
Different OpenAPI spec versions have inconsistent visibility filtering,
causing enum values like LIQUID to appear and disappear across commits.
This made the annotations file non-deterministic depending on which spec
was used.
Evidence of flip-flopping (newest to oldest):
- a6fbd57 Add support for alerts to DABs (#4004) - LIQUID re-added
- ecc9d54 Regenerate autogenerated files (#3981) - LIQUID removed
- 89b2786 Upgrade go sdk to 0.85.0 (#3769) - LIQUID first added1 parent daef3df commit 8189f8c
File tree
5 files changed
+60
-142
lines changed- bundle
- internal/schema
- schema
- libs/jsonschema
5 files changed
+60
-142
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1258 | 1258 | | |
1259 | 1259 | | |
1260 | 1260 | | |
1261 | | - | |
1262 | | - | |
1263 | 1261 | | |
1264 | 1262 | | |
1265 | 1263 | | |
| |||
2914 | 2912 | | |
2915 | 2913 | | |
2916 | 2914 | | |
2917 | | - | |
2918 | | - | |
2919 | | - | |
2920 | | - | |
2921 | | - | |
2922 | 2915 | | |
2923 | 2916 | | |
2924 | 2917 | | |
| |||
2988 | 2981 | | |
2989 | 2982 | | |
2990 | 2983 | | |
2991 | | - | |
2992 | | - | |
2993 | | - | |
2994 | | - | |
2995 | | - | |
2996 | | - | |
2997 | | - | |
2998 | | - | |
2999 | | - | |
| 2984 | + | |
3000 | 2985 | | |
3001 | 2986 | | |
3002 | 2987 | | |
| |||
3682 | 3667 | | |
3683 | 3668 | | |
3684 | 3669 | | |
3685 | | - | |
3686 | | - | |
3687 | | - | |
3688 | | - | |
3689 | | - | |
3690 | | - | |
3691 | | - | |
3692 | | - | |
3693 | | - | |
3694 | | - | |
3695 | | - | |
3696 | | - | |
3697 | | - | |
3698 | | - | |
3699 | | - | |
3700 | 3670 | | |
3701 | 3671 | | |
3702 | 3672 | | |
| |||
3880 | 3850 | | |
3881 | 3851 | | |
3882 | 3852 | | |
3883 | | - | |
3884 | | - | |
3885 | | - | |
3886 | | - | |
3887 | 3853 | | |
3888 | 3854 | | |
3889 | 3855 | | |
| |||
3908 | 3874 | | |
3909 | 3875 | | |
3910 | 3876 | | |
3911 | | - | |
3912 | | - | |
3913 | | - | |
3914 | | - | |
3915 | | - | |
3916 | | - | |
3917 | | - | |
3918 | | - | |
3919 | | - | |
3920 | | - | |
3921 | | - | |
3922 | | - | |
3923 | | - | |
3924 | | - | |
3925 | | - | |
3926 | | - | |
3927 | | - | |
3928 | | - | |
3929 | | - | |
3930 | | - | |
3931 | 3877 | | |
3932 | 3878 | | |
3933 | 3879 | | |
| |||
4277 | 4223 | | |
4278 | 4224 | | |
4279 | 4225 | | |
4280 | | - | |
4281 | | - | |
4282 | | - | |
4283 | | - | |
4284 | | - | |
4285 | | - | |
4286 | | - | |
4287 | 4226 | | |
4288 | 4227 | | |
4289 | 4228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
648 | 652 | | |
649 | 653 | | |
650 | 654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
33 | 66 | | |
34 | 67 | | |
35 | 68 | | |
| |||
160 | 193 | | |
161 | 194 | | |
162 | 195 | | |
163 | | - | |
| 196 | + | |
| 197 | + | |
164 | 198 | | |
165 | 199 | | |
166 | 200 | | |
167 | 201 | | |
168 | 202 | | |
169 | 203 | | |
170 | | - | |
| 204 | + | |
171 | 205 | | |
172 | 206 | | |
173 | 207 | | |
| |||
200 | 234 | | |
201 | 235 | | |
202 | 236 | | |
203 | | - | |
| 237 | + | |
204 | 238 | | |
205 | 239 | | |
206 | 240 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
68 | 77 | | |
0 commit comments