Commit 5d9cad2
committed
fix: add complete schema coverage for all generation config fields
Adds all missing generation configuration fields to the JSON schema that
are defined in configuration.go and actively used in openapi-generation.
This fixes IDE validation errors for fields like hoistGlobalSecurity and
ensures the schema accurately represents all supported configuration options.
Added generation-level fields:
- deduplicateErrors: Deduplicates errors with the same schema
- skipErrorSuffix: Skips automatic error suffix addition
- inferSSEOverload: Generates SSE overload when stream:true detected
- sdkHooksConfigAccess: Enables SDK config access from hooks
- requestBodyFieldName: Custom field name for request body
- schemas: Schema processing configuration
Added usageSnippets sub-fields:
- sdkInitStyle: Controls SDK initialization style (constructor/builder)
- serverToShowInSnippets: Controls which server to show in snippets
Added fixes sub-fields:
- securityFeb2025: Security fixes from Feb 2025
- sharedErrorComponentsApr2025: Error component duplication fixes
Added auth sub-field:
- hoistGlobalSecurity: Hoists operation-level security to global level
Added new schemas definition:
- allOfMergeStrategy: Controls allOf merge strategy (deepMerge/shallowMerge)
All additionalProperties settings match the Go struct definitions.1 parent bb8dad3 commit 5d9cad2
1 file changed
+56
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
| |||
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
91 | 114 | | |
92 | 115 | | |
93 | 116 | | |
| |||
119 | 142 | | |
120 | 143 | | |
121 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
122 | 154 | | |
123 | 155 | | |
124 | 156 | | |
| |||
142 | 174 | | |
143 | 175 | | |
144 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
145 | 185 | | |
146 | 186 | | |
147 | 187 | | |
| |||
157 | 197 | | |
158 | 198 | | |
159 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
160 | 216 | | |
161 | 217 | | |
162 | 218 | | |
| |||
0 commit comments