This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit 5bb87f7
committed
v2 use name for module name (#109)
* Adds CodegenRequestBody
* Java updates where header extends requestbody
* Java updates to use getters
* Removes comment
* Updates fromRequestBody java code
* Regenerates petstore using fixed fromRequestBody
* Removes unused java helper methods for fromRequestBody
* Removes unused java code
* Adds and uses toHeader, toRequestBody
* Uses setRefAndComponentModuleInfo in fromHeader
* Uses helper methods in fromParameter
* Improves code readability, dedents java code
* Removes hasHeaders from CodegenResponse, adds getName to OpenapiComponent interface
* Adds more methods to OpenapiComponent
* Uses setLocationInfo, getKey updated to use component type
* Stops using paramName in response headers
* Stops using parameterName for headers
* Adds request body doc generation back in, it fell out
* Switches back to baseName
* Removes all paramName
* Removes paramName and uses name.getSnakeCaseName
* Moves component types from soffuxes to module prefixes
* Samples regenerated
* Samples regenerated
* Fixes some java tests
* Fixes java test, sets schema example also
* Reverts version file1 parent 60d63b1 commit 5bb87f7
182 files changed
Lines changed: 757 additions & 1161 deletions
File tree
- modules/openapi-json-schema-generator/src
- main
- java/org/openapitools/codegen
- languages
- resources/python
- test/java/org/openapitools/codegen
- java
- samples/openapi3/client
- 3_0_3_unit_test/python/docs/apis/tags
- any_of_api
- content_type_json_api
- enum_api
- one_of_api
- operation_request_body_api
- path_post_api
- type_api
- petstore/python
- .openapi-generator
- docs
- apis/tags
- another_fake_api
- fake_api
- fake_classname_tags123_api
- pet_api
- store_api
- user_api
- components
- headers
- request_bodies
- responses
- schema
- petstore_api
- components
- headers
- header_int32_json_content_type_header
- header_number_header
- header_ref_content_schema_header
- header_ref_schema_header
- header_string_header
- request_bodies
- request_body_client
- request_body_pet
- request_body_user_array
- responses
- response_success_description_only
- response_success_inline_content_and_header
- header_some_header
- response_success_with_json_api_response
- paths
- another_fake_dummy/patch
- fake_body_with_file_schema/put
- fake_body_with_query_params/put
- fake_case_sensitive_params/put
- fake_classname_test/patch
- fake_delete_coffee_id/delete
- fake_inline_additional_properties/post
- fake_json_form_data/get
- fake_json_patch/patch
- fake_obj_in_query/get
- fake_ref_obj_in_query/get
- fake_test_query_paramters/put
- fake
- delete
- get
- patch
- post
- pet_pet_id_upload_image/post
- pet
- post
- put
- store_inventory/get
- user_create_with_array/post
- user_create_with_list/post
- user_login/get/response_for_200
- header_x_expires_after
- header_x_rate_limit
- user_logout/get
- user_username/delete
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
396 | 396 | | |
397 | 397 | | |
398 | 398 | | |
399 | | - | |
400 | | - | |
401 | | - | |
| 399 | + | |
402 | 400 | | |
403 | 401 | | |
404 | 402 | | |
| |||
Lines changed: 9 additions & 74 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | | - | |
37 | | - | |
| 36 | + | |
38 | 37 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 38 | | |
44 | 39 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | 40 | | |
60 | 41 | | |
61 | 42 | | |
62 | | - | |
63 | 43 | | |
64 | 44 | | |
65 | 45 | | |
66 | 46 | | |
67 | 47 | | |
68 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
69 | 52 | | |
70 | 53 | | |
71 | 54 | | |
| |||
120 | 103 | | |
121 | 104 | | |
122 | 105 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 106 | | |
132 | 107 | | |
133 | | - | |
| 108 | + | |
134 | 109 | | |
135 | 110 | | |
136 | 111 | | |
137 | 112 | | |
138 | 113 | | |
139 | 114 | | |
| 115 | + | |
140 | 116 | | |
141 | 117 | | |
142 | 118 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 119 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
| 120 | + | |
157 | 121 | | |
158 | 122 | | |
159 | 123 | | |
| 124 | + | |
160 | 125 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | 126 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 127 | | |
169 | | - | |
170 | | - | |
171 | 128 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | 129 | | |
178 | 130 | | |
179 | 131 | | |
| |||
191 | 143 | | |
192 | 144 | | |
193 | 145 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | 146 | | |
212 | 147 | | |
modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/CodegenOperation.java
Lines changed: 7 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
43 | | - | |
44 | | - | |
| 42 | + | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 77 | | |
88 | 78 | | |
89 | 79 | | |
| |||
120 | 110 | | |
121 | 111 | | |
122 | 112 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 113 | | |
133 | 114 | | |
134 | 115 | | |
| |||
299 | 280 | | |
300 | 281 | | |
301 | 282 | | |
302 | | - | |
303 | | - | |
304 | 283 | | |
305 | 284 | | |
306 | 285 | | |
| |||
327 | 306 | | |
328 | 307 | | |
329 | 308 | | |
330 | | - | |
331 | 309 | | |
332 | 310 | | |
333 | 311 | | |
| |||
364 | 342 | | |
365 | 343 | | |
366 | 344 | | |
367 | | - | |
368 | | - | |
369 | 345 | | |
370 | 346 | | |
371 | 347 | | |
| |||
392 | 368 | | |
393 | 369 | | |
394 | 370 | | |
395 | | - | |
396 | 371 | | |
397 | 372 | | |
398 | 373 | | |
| |||
421 | 396 | | |
422 | 397 | | |
423 | 398 | | |
424 | | - | |
425 | | - | |
| 399 | + | |
| 400 | + | |
426 | 401 | | |
427 | 402 | | |
428 | 403 | | |
429 | 404 | | |
430 | | - | |
| 405 | + | |
431 | 406 | | |
432 | 407 | | |
433 | 408 | | |
| |||
modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/CodegenParameter.java
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
35 | | - | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | | - | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
0 commit comments