This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit 55ef00b
authored
v2 changes Java CodegenX.ref type from String to CodegenX (#117)
* petstore regen
* Sets response ref to CodegenResponse instance
* Endpoint test fix, petstore regen
* Updates codegenHeader
* codegenRequestBody ref update in java
* Fixes endpoint + endpoint docs fro request body, example still broken
* Fixes request body examples
* Fixes requiredVars
* Adds response_for_200 info back into endpoint docs
* Adds response_for_200 back into response header anchor links
* Fixes header component links in scomponent response
* Updates codegenParameter
* Templates updated to get ref parameters working
* Uses setLocationInfo in fromSchema
* Uses a constant and already calculated adProp for required props, reduces fromSchema calls
* Uses codegenSchemaCache.computeIfAbsent in fromSchema
* Removes unaliasing from fromSchema
* Petstore regen
* Adds JsonIgnore to fix debugging
* Sample regen
* Samples regenerated
* Points refs to component schemas, fixes java test
* Fixes java test
* Fixes testAlias
* Fixes 2 java tests
* Fixes testUnalias
* Fixes testNullableProperty
* Fixes testDeprecatedRef
* Fixes testRequestBodyContent
* Fixes testAdditionalPropertiesPresentInResponses
* Fixes testAdditionalPropertiesPresentInParameters
* Fixes testIsXPresence
* Fixes testResponseContentAndHeader
* Fixes DefaultGeneratorTests
* Fixes AbstractJavaCodegenExampleValuesTest
* Samples updated1 parent 93bae60 commit 55ef00b
115 files changed
Lines changed: 1773 additions & 1469 deletions
File tree
- modules/openapi-json-schema-generator/src
- main
- java/org/openapitools/codegen
- resources/python
- test/java/org/openapitools/codegen
- java
- samples/openapi3/client
- 3_0_3_unit_test/python/test/test_paths
- test_response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types
- test_response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types
- test_response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types
- test_response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types
- test_response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types
- test_response_body_post_allof_response_body_for_content_types
- test_response_body_post_allof_simple_types_response_body_for_content_types
- test_response_body_post_allof_with_base_schema_response_body_for_content_types
- test_response_body_post_allof_with_one_empty_schema_response_body_for_content_types
- test_response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types
- test_response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types
- test_response_body_post_allof_with_two_empty_schemas_response_body_for_content_types
- test_response_body_post_anyof_complex_types_response_body_for_content_types
- test_response_body_post_anyof_response_body_for_content_types
- test_response_body_post_anyof_with_base_schema_response_body_for_content_types
- test_response_body_post_anyof_with_one_empty_schema_response_body_for_content_types
- test_response_body_post_array_type_matches_arrays_response_body_for_content_types
- test_response_body_post_boolean_type_matches_booleans_response_body_for_content_types
- test_response_body_post_by_int_response_body_for_content_types
- test_response_body_post_by_number_response_body_for_content_types
- test_response_body_post_by_small_number_response_body_for_content_types
- test_response_body_post_date_time_format_response_body_for_content_types
- test_response_body_post_email_format_response_body_for_content_types
- test_response_body_post_enum_with0_does_not_match_false_response_body_for_content_types
- test_response_body_post_enum_with1_does_not_match_true_response_body_for_content_types
- test_response_body_post_enum_with_escaped_characters_response_body_for_content_types
- test_response_body_post_enum_with_false_does_not_match0_response_body_for_content_types
- test_response_body_post_enum_with_true_does_not_match1_response_body_for_content_types
- test_response_body_post_enums_in_properties_response_body_for_content_types
- test_response_body_post_forbidden_property_response_body_for_content_types
- test_response_body_post_hostname_format_response_body_for_content_types
- test_response_body_post_integer_type_matches_integers_response_body_for_content_types
- test_response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types
- test_response_body_post_invalid_string_value_for_default_response_body_for_content_types
- test_response_body_post_ipv4_format_response_body_for_content_types
- test_response_body_post_ipv6_format_response_body_for_content_types
- test_response_body_post_json_pointer_format_response_body_for_content_types
- test_response_body_post_maximum_validation_response_body_for_content_types
- test_response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types
- test_response_body_post_maxitems_validation_response_body_for_content_types
- test_response_body_post_maxlength_validation_response_body_for_content_types
- test_response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types
- test_response_body_post_maxproperties_validation_response_body_for_content_types
- test_response_body_post_minimum_validation_response_body_for_content_types
- test_response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types
- test_response_body_post_minitems_validation_response_body_for_content_types
- test_response_body_post_minlength_validation_response_body_for_content_types
- test_response_body_post_minproperties_validation_response_body_for_content_types
- test_response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types
- test_response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types
- test_response_body_post_nested_items_response_body_for_content_types
- test_response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types
- test_response_body_post_not_more_complex_schema_response_body_for_content_types
- test_response_body_post_not_response_body_for_content_types
- test_response_body_post_nul_characters_in_strings_response_body_for_content_types
- test_response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types
- test_response_body_post_number_type_matches_numbers_response_body_for_content_types
- test_response_body_post_object_properties_validation_response_body_for_content_types
- test_response_body_post_object_type_matches_objects_response_body_for_content_types
- test_response_body_post_oneof_complex_types_response_body_for_content_types
- test_response_body_post_oneof_response_body_for_content_types
- test_response_body_post_oneof_with_base_schema_response_body_for_content_types
- test_response_body_post_oneof_with_empty_schema_response_body_for_content_types
- test_response_body_post_oneof_with_required_response_body_for_content_types
- test_response_body_post_pattern_is_not_anchored_response_body_for_content_types
- test_response_body_post_pattern_validation_response_body_for_content_types
- test_response_body_post_properties_with_escaped_characters_response_body_for_content_types
- test_response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types
- test_response_body_post_ref_in_additionalproperties_response_body_for_content_types
- test_response_body_post_ref_in_allof_response_body_for_content_types
- test_response_body_post_ref_in_anyof_response_body_for_content_types
- test_response_body_post_ref_in_items_response_body_for_content_types
- test_response_body_post_ref_in_not_response_body_for_content_types
- test_response_body_post_ref_in_oneof_response_body_for_content_types
- test_response_body_post_ref_in_property_response_body_for_content_types
- test_response_body_post_required_default_validation_response_body_for_content_types
- test_response_body_post_required_validation_response_body_for_content_types
- test_response_body_post_required_with_empty_array_response_body_for_content_types
- test_response_body_post_required_with_escaped_characters_response_body_for_content_types
- test_response_body_post_simple_enum_validation_response_body_for_content_types
- test_response_body_post_string_type_matches_strings_response_body_for_content_types
- test_response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types
- test_response_body_post_uniqueitems_false_validation_response_body_for_content_types
- test_response_body_post_uniqueitems_validation_response_body_for_content_types
- test_response_body_post_uri_format_response_body_for_content_types
- test_response_body_post_uri_reference_format_response_body_for_content_types
- test_response_body_post_uri_template_format_response_body_for_content_types
- petstore/python/docs/apis/tags/user_api
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/CodegenOperation.java
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | | - | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| 172 | + | |
172 | 173 | | |
173 | 174 | | |
174 | 175 | | |
175 | 176 | | |
176 | 177 | | |
177 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
178 | 185 | | |
179 | 186 | | |
180 | 187 | | |
| |||
modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/CodegenParameter.java
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
Lines changed: 3 additions & 3 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 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
158 | | - | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
584 | 586 | | |
585 | 587 | | |
586 | 588 | | |
587 | | - | |
588 | | - | |
| 589 | + | |
| 590 | + | |
589 | 591 | | |
590 | 592 | | |
591 | 593 | | |
592 | | - | |
| 594 | + | |
593 | 595 | | |
594 | 596 | | |
595 | 597 | | |
| |||
942 | 944 | | |
943 | 945 | | |
944 | 946 | | |
945 | | - | |
| 947 | + | |
946 | 948 | | |
947 | 949 | | |
948 | 950 | | |
| |||
0 commit comments