This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit b947142
authored
v2 individual endpoint docs (#96)
* Moves path generation out of the python client into default layers
* Fixes java call sites
* petstore regenerated
* Removes paths with old names
* Removes old autogen tests
* Fixes deprecated method usage, removes unused imports
* Samples regenerated
* templates renamed
* Adds pathEndpointTemplateFiles and uses it
* Adds general code to generate path request bodies and parameters
* Adds pathEndpointResponseTemplateFiles + pathEndpointResponseHeaderTemplateFiles
* Further refactoring, adds pathEndpointTestTemplateFiles
* Finishes generateEndpoints refactor
* Petstore sample regenerated
* Adds java code to generate endpoint docs
* petstore regenerated, per endpoint docs exist
* api docs updated
* FIxes link to endpoint files
* Moves endpoind docs into the tags folder
* Creates and uses CodegenTag to store api module and classname info
* Endpoint docs generated in correct location, tag and tags used in templates
* Removes operationId prefix from endpoint_doc anchors in template
* Petstore regen
* Fixes anchor links, adds anchorContainsPeriod=true
* Updates links in endpoiint files
* Endpoint doc links updated
* Fixes API link
* Fixes api_doc links
* Fixes host and exception info in endpoint docs
* Updates readme endpoints
* Adds request bodies
* Samples regenerated
* Fixes docs dor request bodies, omitted when not present
* Fixes java tsts1 parent 84a16b8 commit b947142
1,090 files changed
Lines changed: 59559 additions & 51502 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
- .openapi-generator
- docs/apis/tags
- additional_properties_api
- all_of_api
- any_of_api
- content_type_json_api
- default_api
- enum_api
- format_api
- items_api
- max_items_api
- max_length_api
- max_properties_api
- maximum_api
- min_items_api
- min_length_api
- min_properties_api
- minimum_api
- model_not_api
- multiple_of_api
- one_of_api
- operation_request_body_api
- path_post_api
- pattern_api
- properties_api
- ref_api
- required_api
- response_content_content_type_schema_api
- type_api
- unique_items_api
- unit_test_api
- apis/paths
- paths
- request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body
- request_body_post_additionalproperties_are_allowed_by_default_request_body
- request_body_post_additionalproperties_can_exist_by_itself_request_body
- request_body_post_additionalproperties_should_not_look_in_applicators_request_body
- request_body_post_allof_combined_with_anyof_oneof_request_body
- request_body_post_allof_request_body
- request_body_post_allof_simple_types_request_body
- request_body_post_allof_with_base_schema_request_body
- request_body_post_allof_with_one_empty_schema_request_body
- request_body_post_allof_with_the_first_empty_schema_request_body
- request_body_post_allof_with_the_last_empty_schema_request_body
- request_body_post_allof_with_two_empty_schemas_request_body
- request_body_post_anyof_complex_types_request_body
- request_body_post_anyof_request_body
- request_body_post_anyof_with_base_schema_request_body
- request_body_post_anyof_with_one_empty_schema_request_body
- request_body_post_array_type_matches_arrays_request_body
- request_body_post_boolean_type_matches_booleans_request_body
- request_body_post_by_int_request_body
- request_body_post_by_number_request_body
- request_body_post_by_small_number_request_body
- request_body_post_date_time_format_request_body
- request_body_post_email_format_request_body
- request_body_post_enum_with0_does_not_match_false_request_body
- request_body_post_enum_with1_does_not_match_true_request_body
- request_body_post_enum_with_escaped_characters_request_body
- request_body_post_enum_with_false_does_not_match0_request_body
- request_body_post_enum_with_true_does_not_match1_request_body
- request_body_post_enums_in_properties_request_body
- request_body_post_forbidden_property_request_body
- request_body_post_hostname_format_request_body
- request_body_post_integer_type_matches_integers_request_body
- request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body
- request_body_post_invalid_string_value_for_default_request_body
- request_body_post_ipv4_format_request_body
- request_body_post_ipv6_format_request_body
- request_body_post_json_pointer_format_request_body
- request_body_post_maximum_validation_request_body
- request_body_post_maximum_validation_with_unsigned_integer_request_body
- request_body_post_maxitems_validation_request_body
- request_body_post_maxlength_validation_request_body
- request_body_post_maxproperties0_means_the_object_is_empty_request_body
- request_body_post_maxproperties_validation_request_body
- request_body_post_minimum_validation_request_body
- request_body_post_minimum_validation_with_signed_integer_request_body
- request_body_post_minitems_validation_request_body
- request_body_post_minlength_validation_request_body
- request_body_post_minproperties_validation_request_body
- request_body_post_nested_allof_to_check_validation_semantics_request_body
- request_body_post_nested_anyof_to_check_validation_semantics_request_body
- request_body_post_nested_items_request_body
- request_body_post_nested_oneof_to_check_validation_semantics_request_body
- request_body_post_not_more_complex_schema_request_body
- request_body_post_not_request_body
- request_body_post_nul_characters_in_strings_request_body
- request_body_post_null_type_matches_only_the_null_object_request_body
- request_body_post_number_type_matches_numbers_request_body
- request_body_post_object_properties_validation_request_body
- request_body_post_object_type_matches_objects_request_body
- request_body_post_oneof_complex_types_request_body
- request_body_post_oneof_request_body
- request_body_post_oneof_with_base_schema_request_body
- request_body_post_oneof_with_empty_schema_request_body
- request_body_post_oneof_with_required_request_body
- request_body_post_pattern_is_not_anchored_request_body
- request_body_post_pattern_validation_request_body
- request_body_post_properties_with_escaped_characters_request_body
- request_body_post_property_named_ref_that_is_not_a_reference_request_body
- request_body_post_ref_in_additionalproperties_request_body
- request_body_post_ref_in_allof_request_body
- request_body_post_ref_in_anyof_request_body
- request_body_post_ref_in_items_request_body
- request_body_post_ref_in_not_request_body
- request_body_post_ref_in_oneof_request_body
- request_body_post_ref_in_property_request_body
- request_body_post_required_default_validation_request_body
- request_body_post_required_validation_request_body
- request_body_post_required_with_empty_array_request_body
- request_body_post_required_with_escaped_characters_request_body
- request_body_post_simple_enum_validation_request_body
- request_body_post_string_type_matches_strings_request_body
- request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body
- request_body_post_uniqueitems_false_validation_request_body
- request_body_post_uniqueitems_validation_request_body
- request_body_post_uri_format_request_body
- request_body_post_uri_reference_format_request_body
- request_body_post_uri_template_format_request_body
- response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types
- response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types
- response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types
- response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types
- response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types
- response_body_post_allof_response_body_for_content_types
- response_body_post_allof_simple_types_response_body_for_content_types
- response_body_post_allof_with_base_schema_response_body_for_content_types
- response_body_post_allof_with_one_empty_schema_response_body_for_content_types
- response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types
- response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types
- response_body_post_allof_with_two_empty_schemas_response_body_for_content_types
- response_body_post_anyof_complex_types_response_body_for_content_types
- response_body_post_anyof_response_body_for_content_types
- response_body_post_anyof_with_base_schema_response_body_for_content_types
- response_body_post_anyof_with_one_empty_schema_response_body_for_content_types
- response_body_post_array_type_matches_arrays_response_body_for_content_types
- response_body_post_boolean_type_matches_booleans_response_body_for_content_types
- response_body_post_by_int_response_body_for_content_types
- response_body_post_by_number_response_body_for_content_types
- response_body_post_by_small_number_response_body_for_content_types
- response_body_post_date_time_format_response_body_for_content_types
- response_body_post_email_format_response_body_for_content_types
- response_body_post_enum_with0_does_not_match_false_response_body_for_content_types
- response_body_post_enum_with1_does_not_match_true_response_body_for_content_types
- response_body_post_enum_with_escaped_characters_response_body_for_content_types
- response_body_post_enum_with_false_does_not_match0_response_body_for_content_types
- response_body_post_enum_with_true_does_not_match1_response_body_for_content_types
- response_body_post_enums_in_properties_response_body_for_content_types
- response_body_post_forbidden_property_response_body_for_content_types
- response_body_post_hostname_format_response_body_for_content_types
- response_body_post_integer_type_matches_integers_response_body_for_content_types
- response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types
- response_body_post_invalid_string_value_for_default_response_body_for_content_types
- response_body_post_ipv4_format_response_body_for_content_types
- response_body_post_ipv6_format_response_body_for_content_types
- response_body_post_json_pointer_format_response_body_for_content_types
- response_body_post_maximum_validation_response_body_for_content_types
- response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types
- response_body_post_maxitems_validation_response_body_for_content_types
- response_body_post_maxlength_validation_response_body_for_content_types
- response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types
- response_body_post_maxproperties_validation_response_body_for_content_types
- response_body_post_minimum_validation_response_body_for_content_types
- response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types
- response_body_post_minitems_validation_response_body_for_content_types
- response_body_post_minlength_validation_response_body_for_content_types
- response_body_post_minproperties_validation_response_body_for_content_types
- response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types
- response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types
- response_body_post_nested_items_response_body_for_content_types
- response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types
- response_body_post_not_more_complex_schema_response_body_for_content_types
- response_body_post_not_response_body_for_content_types
- response_body_post_nul_characters_in_strings_response_body_for_content_types
- response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types
- response_body_post_number_type_matches_numbers_response_body_for_content_types
- response_body_post_object_properties_validation_response_body_for_content_types
- response_body_post_object_type_matches_objects_response_body_for_content_types
- response_body_post_oneof_complex_types_response_body_for_content_types
- response_body_post_oneof_response_body_for_content_types
- response_body_post_oneof_with_base_schema_response_body_for_content_types
- response_body_post_oneof_with_empty_schema_response_body_for_content_types
- response_body_post_oneof_with_required_response_body_for_content_types
- response_body_post_pattern_is_not_anchored_response_body_for_content_types
- response_body_post_pattern_validation_response_body_for_content_types
- response_body_post_properties_with_escaped_characters_response_body_for_content_types
- response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types
- response_body_post_ref_in_additionalproperties_response_body_for_content_types
- response_body_post_ref_in_allof_response_body_for_content_types
- response_body_post_ref_in_anyof_response_body_for_content_types
- response_body_post_ref_in_items_response_body_for_content_types
- response_body_post_ref_in_not_response_body_for_content_types
- response_body_post_ref_in_oneof_response_body_for_content_types
- response_body_post_ref_in_property_response_body_for_content_types
- response_body_post_required_default_validation_response_body_for_content_types
- response_body_post_required_validation_response_body_for_content_types
- response_body_post_required_with_empty_array_response_body_for_content_types
- response_body_post_required_with_escaped_characters_response_body_for_content_types
- response_body_post_simple_enum_validation_response_body_for_content_types
- response_body_post_string_type_matches_strings_response_body_for_content_types
- response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types
- response_body_post_uniqueitems_false_validation_response_body_for_content_types
- response_body_post_uniqueitems_validation_response_body_for_content_types
- response_body_post_uri_format_response_body_for_content_types
- response_body_post_uri_reference_format_response_body_for_content_types
- response_body_post_uri_template_format_response_body_for_content_types
- features/nonCompliantUseDiscriminatorIfCompositionFails/python
- .openapi-generator
- docs/apis/tags
- default_api
- this_package
- apis/paths
- paths
- operators
- petstore/python
- .openapi-generator
- docs
- apis/tags
- another_fake_api
- default_api
- fake_api
- fake_classname_tags123_api
- pet_api
- store_api
- user_api
- components/request_bodies
- petstore_api
- apis
- paths
- tags
- paths
- another_fake_dummy
- fake_additional_properties_with_array_of_enums
- fake_body_with_file_schema
- fake_body_with_query_params
- fake_case_sensitive_params
- fake_classname_test
- fake_delete_coffee_id
- fake_health
- fake_inline_additional_properties
- fake_inline_composition
- post
- response_for_200
- fake_json_form_data
- fake_json_patch
- fake_json_with_charset
- fake_obj_in_query
- fake_parameter_collisions1_abab_self_ab
- post
- response_for_200
- fake_pet_id_upload_image_with_required_file
- fake_query_param_with_json_content_type
- fake_ref_obj_in_query
- fake_refs_array_of_enums
- fake_refs_arraymodel
- fake_refs_boolean
- fake_refs_composed_one_of_number_with_validations
- fake_refs_enum
- fake_refs_mammal
- fake_refs_number
- fake_refs_object_model_with_ref_props
- fake_refs_string
- fake_response_without_schema
- fake_test_query_paramters
- fake_upload_download_file
- fake_upload_files
- fake_upload_file
- fake
- foo
- pet_find_by_status
- pet_find_by_tags
- pet_pet_id_upload_image
- pet_pet_id
- pet
- store_inventory
- store_order_order_id
- store_order
- user_create_with_array
- user_create_with_list
- user_login
- user_logout
- user_username
- user
- test/test_paths
- test_fake_inline_composition
- test_fake_parameter_collisions1_abab_self_ab
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| 161 | + | |
| 162 | + | |
159 | 163 | | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
165 | 183 | | |
166 | 184 | | |
167 | 185 | | |
| |||
202 | 220 | | |
203 | 221 | | |
204 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
205 | 227 | | |
206 | 228 | | |
207 | 229 | | |
| |||
modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/CodegenOperation.java
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
Lines changed: 23 additions & 0 deletions
| 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 | + | |
Lines changed: 66 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| 183 | + | |
182 | 184 | | |
183 | 185 | | |
184 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
185 | 194 | | |
186 | 195 | | |
187 | 196 | | |
| |||
539 | 548 | | |
540 | 549 | | |
541 | 550 | | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
542 | 555 | | |
543 | 556 | | |
544 | 557 | | |
| |||
1187 | 1200 | | |
1188 | 1201 | | |
1189 | 1202 | | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
1190 | 1206 | | |
1191 | 1207 | | |
1192 | 1208 | | |
| |||
1198 | 1214 | | |
1199 | 1215 | | |
1200 | 1216 | | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
1201 | 1238 | | |
1202 | 1239 | | |
1203 | 1240 | | |
| |||
1477 | 1514 | | |
1478 | 1515 | | |
1479 | 1516 | | |
| 1517 | + | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
1480 | 1525 | | |
1481 | 1526 | | |
1482 | 1527 | | |
| |||
4189 | 4234 | | |
4190 | 4235 | | |
4191 | 4236 | | |
| 4237 | + | |
| 4238 | + | |
| 4239 | + | |
| 4240 | + | |
| 4241 | + | |
| 4242 | + | |
| 4243 | + | |
| 4244 | + | |
| 4245 | + | |
| 4246 | + | |
| 4247 | + | |
| 4248 | + | |
| 4249 | + | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
| 4253 | + | |
| 4254 | + | |
| 4255 | + | |
| 4256 | + | |
| 4257 | + | |
4192 | 4258 | | |
4193 | 4259 | | |
4194 | 4260 | | |
| |||
0 commit comments