This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit 76cffba
committed
v2 includes module name in ref class (#63)
* Uses new fromProperty, passes sourceJsonPath
* Samples regenerated
* Adds toRefClass for python, updates toModelDocFilename for python
* Petstore regenerated, component doc filenames updated
* Self references updated
* Fixes readme links to models
* Fixes model doc links for self references
* Adds two self referenicng models
* Updates toModelImport to use refClass
* Updates discriminator and example code to handle complexType values in map
* Adds import generation back in
* Makes java variable
* Petstore regen, fixes contains check for period
* Uses complexClass in endpoint docs for inputs
* Fixes tests in PythonClinteTest
* FIxes more java tests
* Fixes $refs in ObjectModelWithRefProps
* Removes broken java defaultCodegen test
* Adds TestSelfReferencingObjectModel
* Adds TestSelfReferencingArrayModel
* Fixes some java tests
* Fixes remaining java tests
* Samples regenerated1 parent 727f9eb commit 76cffba
845 files changed
Lines changed: 4601 additions & 3745 deletions
File tree
- modules/openapi-json-schema-generator/src
- main
- java/org/openapitools/codegen
- languages
- utils
- resources/python
- test
- java/org/openapitools/codegen
- java
- resources/3_0
- python
- samples/openapi3/client
- 3_0_3_unit_test/python
- .openapi-generator
- docs
- apis/tags
- components/schema
- unit_test_api
- components/schema
- paths
- request_body_post_additionalproperties_allows_a_schema_which_should_validate_request_body/post
- request_body_post_additionalproperties_are_allowed_by_default_request_body/post
- request_body_post_additionalproperties_can_exist_by_itself_request_body/post
- request_body_post_additionalproperties_should_not_look_in_applicators_request_body/post
- request_body_post_allof_combined_with_anyof_oneof_request_body/post
- request_body_post_allof_request_body/post
- request_body_post_allof_simple_types_request_body/post
- request_body_post_allof_with_base_schema_request_body/post
- request_body_post_allof_with_one_empty_schema_request_body/post
- request_body_post_allof_with_the_first_empty_schema_request_body/post
- request_body_post_allof_with_the_last_empty_schema_request_body/post
- request_body_post_allof_with_two_empty_schemas_request_body/post
- request_body_post_anyof_complex_types_request_body/post
- request_body_post_anyof_request_body/post
- request_body_post_anyof_with_base_schema_request_body/post
- request_body_post_anyof_with_one_empty_schema_request_body/post
- request_body_post_array_type_matches_arrays_request_body/post
- request_body_post_boolean_type_matches_booleans_request_body/post
- request_body_post_by_int_request_body/post
- request_body_post_by_number_request_body/post
- request_body_post_by_small_number_request_body/post
- request_body_post_date_time_format_request_body/post
- request_body_post_email_format_request_body/post
- request_body_post_enum_with0_does_not_match_false_request_body/post
- request_body_post_enum_with1_does_not_match_true_request_body/post
- request_body_post_enum_with_escaped_characters_request_body/post
- request_body_post_enum_with_false_does_not_match0_request_body/post
- request_body_post_enum_with_true_does_not_match1_request_body/post
- request_body_post_enums_in_properties_request_body/post
- request_body_post_forbidden_property_request_body/post
- request_body_post_hostname_format_request_body/post
- request_body_post_integer_type_matches_integers_request_body/post
- request_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_request_body/post
- request_body_post_invalid_string_value_for_default_request_body/post
- request_body_post_ipv4_format_request_body/post
- request_body_post_ipv6_format_request_body/post
- request_body_post_json_pointer_format_request_body/post
- request_body_post_maximum_validation_request_body/post
- request_body_post_maximum_validation_with_unsigned_integer_request_body/post
- request_body_post_maxitems_validation_request_body/post
- request_body_post_maxlength_validation_request_body/post
- request_body_post_maxproperties0_means_the_object_is_empty_request_body/post
- request_body_post_maxproperties_validation_request_body/post
- request_body_post_minimum_validation_request_body/post
- request_body_post_minimum_validation_with_signed_integer_request_body/post
- request_body_post_minitems_validation_request_body/post
- request_body_post_minlength_validation_request_body/post
- request_body_post_minproperties_validation_request_body/post
- request_body_post_nested_allof_to_check_validation_semantics_request_body/post
- request_body_post_nested_anyof_to_check_validation_semantics_request_body/post
- request_body_post_nested_items_request_body/post
- request_body_post_nested_oneof_to_check_validation_semantics_request_body/post
- request_body_post_not_more_complex_schema_request_body/post
- request_body_post_not_request_body/post
- request_body_post_nul_characters_in_strings_request_body/post
- request_body_post_null_type_matches_only_the_null_object_request_body/post
- request_body_post_number_type_matches_numbers_request_body/post
- request_body_post_object_properties_validation_request_body/post
- request_body_post_object_type_matches_objects_request_body/post
- request_body_post_oneof_complex_types_request_body/post
- request_body_post_oneof_request_body/post
- request_body_post_oneof_with_base_schema_request_body/post
- request_body_post_oneof_with_empty_schema_request_body/post
- request_body_post_oneof_with_required_request_body/post
- request_body_post_pattern_is_not_anchored_request_body/post
- request_body_post_pattern_validation_request_body/post
- request_body_post_properties_with_escaped_characters_request_body/post
- request_body_post_property_named_ref_that_is_not_a_reference_request_body/post
- request_body_post_ref_in_additionalproperties_request_body/post
- request_body_post_ref_in_allof_request_body/post
- request_body_post_ref_in_anyof_request_body/post
- request_body_post_ref_in_items_request_body/post
- request_body_post_ref_in_not_request_body/post
- request_body_post_ref_in_oneof_request_body/post
- request_body_post_ref_in_property_request_body/post
- request_body_post_required_default_validation_request_body/post
- request_body_post_required_validation_request_body/post
- request_body_post_required_with_empty_array_request_body/post
- request_body_post_required_with_escaped_characters_request_body/post
- request_body_post_simple_enum_validation_request_body/post
- request_body_post_string_type_matches_strings_request_body/post
- request_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_request_body/post
- request_body_post_uniqueitems_false_validation_request_body/post
- request_body_post_uniqueitems_validation_request_body/post
- request_body_post_uri_format_request_body/post
- request_body_post_uri_reference_format_request_body/post
- request_body_post_uri_template_format_request_body/post
- response_body_post_additionalproperties_allows_a_schema_which_should_validate_response_body_for_content_types/post/response_for_200
- response_body_post_additionalproperties_are_allowed_by_default_response_body_for_content_types/post/response_for_200
- response_body_post_additionalproperties_can_exist_by_itself_response_body_for_content_types/post/response_for_200
- response_body_post_additionalproperties_should_not_look_in_applicators_response_body_for_content_types/post/response_for_200
- response_body_post_allof_combined_with_anyof_oneof_response_body_for_content_types/post/response_for_200
- response_body_post_allof_response_body_for_content_types/post/response_for_200
- response_body_post_allof_simple_types_response_body_for_content_types/post/response_for_200
- response_body_post_allof_with_base_schema_response_body_for_content_types/post/response_for_200
- response_body_post_allof_with_one_empty_schema_response_body_for_content_types/post/response_for_200
- response_body_post_allof_with_the_first_empty_schema_response_body_for_content_types/post/response_for_200
- response_body_post_allof_with_the_last_empty_schema_response_body_for_content_types/post/response_for_200
- response_body_post_allof_with_two_empty_schemas_response_body_for_content_types/post/response_for_200
- response_body_post_anyof_complex_types_response_body_for_content_types/post/response_for_200
- response_body_post_anyof_response_body_for_content_types/post/response_for_200
- response_body_post_anyof_with_base_schema_response_body_for_content_types/post/response_for_200
- response_body_post_anyof_with_one_empty_schema_response_body_for_content_types/post/response_for_200
- response_body_post_array_type_matches_arrays_response_body_for_content_types/post/response_for_200
- response_body_post_boolean_type_matches_booleans_response_body_for_content_types/post/response_for_200
- response_body_post_by_int_response_body_for_content_types/post/response_for_200
- response_body_post_by_number_response_body_for_content_types/post/response_for_200
- response_body_post_by_small_number_response_body_for_content_types/post/response_for_200
- response_body_post_date_time_format_response_body_for_content_types/post/response_for_200
- response_body_post_email_format_response_body_for_content_types/post/response_for_200
- response_body_post_enum_with0_does_not_match_false_response_body_for_content_types/post/response_for_200
- response_body_post_enum_with1_does_not_match_true_response_body_for_content_types/post/response_for_200
- response_body_post_enum_with_escaped_characters_response_body_for_content_types/post/response_for_200
- response_body_post_enum_with_false_does_not_match0_response_body_for_content_types/post/response_for_200
- response_body_post_enum_with_true_does_not_match1_response_body_for_content_types/post/response_for_200
- response_body_post_enums_in_properties_response_body_for_content_types/post/response_for_200
- response_body_post_forbidden_property_response_body_for_content_types/post/response_for_200
- response_body_post_hostname_format_response_body_for_content_types/post/response_for_200
- response_body_post_integer_type_matches_integers_response_body_for_content_types/post/response_for_200
- response_body_post_invalid_instance_should_not_raise_error_when_float_division_inf_response_body_for_content_types/post/response_for_200
- response_body_post_invalid_string_value_for_default_response_body_for_content_types/post/response_for_200
- response_body_post_ipv4_format_response_body_for_content_types/post/response_for_200
- response_body_post_ipv6_format_response_body_for_content_types/post/response_for_200
- response_body_post_json_pointer_format_response_body_for_content_types/post/response_for_200
- response_body_post_maximum_validation_response_body_for_content_types/post/response_for_200
- response_body_post_maximum_validation_with_unsigned_integer_response_body_for_content_types/post/response_for_200
- response_body_post_maxitems_validation_response_body_for_content_types/post/response_for_200
- response_body_post_maxlength_validation_response_body_for_content_types/post/response_for_200
- response_body_post_maxproperties0_means_the_object_is_empty_response_body_for_content_types/post/response_for_200
- response_body_post_maxproperties_validation_response_body_for_content_types/post/response_for_200
- response_body_post_minimum_validation_response_body_for_content_types/post/response_for_200
- response_body_post_minimum_validation_with_signed_integer_response_body_for_content_types/post/response_for_200
- response_body_post_minitems_validation_response_body_for_content_types/post/response_for_200
- response_body_post_minlength_validation_response_body_for_content_types/post/response_for_200
- response_body_post_minproperties_validation_response_body_for_content_types/post/response_for_200
- response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200
- response_body_post_nested_anyof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200
- response_body_post_nested_items_response_body_for_content_types/post/response_for_200
- response_body_post_nested_oneof_to_check_validation_semantics_response_body_for_content_types/post/response_for_200
- response_body_post_not_more_complex_schema_response_body_for_content_types/post/response_for_200
- response_body_post_not_response_body_for_content_types/post/response_for_200
- response_body_post_nul_characters_in_strings_response_body_for_content_types/post/response_for_200
- response_body_post_null_type_matches_only_the_null_object_response_body_for_content_types/post/response_for_200
- response_body_post_number_type_matches_numbers_response_body_for_content_types/post/response_for_200
- response_body_post_object_properties_validation_response_body_for_content_types/post/response_for_200
- response_body_post_object_type_matches_objects_response_body_for_content_types/post/response_for_200
- response_body_post_oneof_complex_types_response_body_for_content_types/post/response_for_200
- response_body_post_oneof_response_body_for_content_types/post/response_for_200
- response_body_post_oneof_with_base_schema_response_body_for_content_types/post/response_for_200
- response_body_post_oneof_with_empty_schema_response_body_for_content_types/post/response_for_200
- response_body_post_oneof_with_required_response_body_for_content_types/post/response_for_200
- response_body_post_pattern_is_not_anchored_response_body_for_content_types/post/response_for_200
- response_body_post_pattern_validation_response_body_for_content_types/post/response_for_200
- response_body_post_properties_with_escaped_characters_response_body_for_content_types/post/response_for_200
- response_body_post_property_named_ref_that_is_not_a_reference_response_body_for_content_types/post/response_for_200
- response_body_post_ref_in_additionalproperties_response_body_for_content_types/post/response_for_200
- response_body_post_ref_in_allof_response_body_for_content_types/post/response_for_200
- response_body_post_ref_in_anyof_response_body_for_content_types/post/response_for_200
- response_body_post_ref_in_items_response_body_for_content_types/post/response_for_200
- response_body_post_ref_in_not_response_body_for_content_types/post/response_for_200
- response_body_post_ref_in_oneof_response_body_for_content_types/post/response_for_200
- response_body_post_ref_in_property_response_body_for_content_types/post/response_for_200
- response_body_post_required_default_validation_response_body_for_content_types/post/response_for_200
- response_body_post_required_validation_response_body_for_content_types/post/response_for_200
- response_body_post_required_with_empty_array_response_body_for_content_types/post/response_for_200
- response_body_post_required_with_escaped_characters_response_body_for_content_types/post/response_for_200
- response_body_post_simple_enum_validation_response_body_for_content_types/post/response_for_200
- response_body_post_string_type_matches_strings_response_body_for_content_types/post/response_for_200
- response_body_post_the_default_keyword_does_not_do_anything_if_the_property_is_missing_response_body_for_content_types/post/response_for_200
- response_body_post_uniqueitems_false_validation_response_body_for_content_types/post/response_for_200
- response_body_post_uniqueitems_validation_response_body_for_content_types/post/response_for_200
- response_body_post_uri_format_response_body_for_content_types/post/response_for_200
- response_body_post_uri_reference_format_response_body_for_content_types/post/response_for_200
- response_body_post_uri_template_format_response_body_for_content_types/post/response_for_200
- features/nonCompliantUseDiscriminatorIfCompositionFails/python
- .openapi-generator
- docs
- apis/tags
- components/schema
- this_package
- components/schema
- paths/operators/post
- petstore/python
- .openapi-generator
- docs
- apis/tags
- components/schema
- petstore_api
- components
- schemas
- schema
- paths
- another_fake_dummy/patch
- response_for_200
- fake_additional_properties_with_array_of_enums/get
- response_for_200
- fake_body_with_file_schema/put
- fake_body_with_query_params/put
- fake_classname_test/patch
- response_for_200
- fake_health/get/response_for_200
- fake_json_patch/patch
- fake_pet_id_upload_image_with_required_file/post/response_for_200
- fake_ref_obj_in_query/get
- fake_refs_array_of_enums/post
- response_for_200
- fake_refs_arraymodel/post
- response_for_200
- fake_refs_boolean/post
- response_for_200
- fake_refs_composed_one_of_number_with_validations/post
- response_for_200
- fake_refs_enum/post
- response_for_200
- fake_refs_mammal/post
- response_for_200
- fake_refs_number/post
- response_for_200
- fake_refs_object_model_with_ref_props/post
- response_for_200
- fake_refs_string/post
- response_for_200
- fake_test_query_paramters/put
- fake_upload_files/post/response_for_200
- fake_upload_file/post/response_for_200
- fake/patch
- response_for_200
- foo/get/response_for_default
- pet_find_by_status/get/response_for_200
- pet_find_by_tags/get/response_for_200
- pet_pet_id_upload_image/post/response_for_200
- pet_pet_id/get/response_for_200
- pet
- post
- put
- store_order_order_id/get/response_for_200
- store_order/post
- response_for_200
- user_create_with_array/post
- user_create_with_list/post
- user_username
- get/response_for_200
- put
- user/post
- tests_manual
- test/components/schema
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 & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
| 333 | + | |
| 334 | + | |
333 | 335 | | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1214 | 1214 | | |
1215 | 1215 | | |
1216 | 1216 | | |
1217 | | - | |
| 1217 | + | |
| 1218 | + | |
1218 | 1219 | | |
1219 | 1220 | | |
1220 | 1221 | | |
| |||
Lines changed: 253 additions & 207 deletions
Large diffs are not rendered by default.
modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/DefaultGenerator.java
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1283 | 1283 | | |
1284 | 1284 | | |
1285 | 1285 | | |
1286 | | - | |
| 1286 | + | |
1287 | 1287 | | |
1288 | 1288 | | |
1289 | 1289 | | |
1290 | | - | |
| 1290 | + | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | | - | |
| 1293 | + | |
1294 | 1294 | | |
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
1298 | 1301 | | |
1299 | 1302 | | |
1300 | 1303 | | |
1301 | 1304 | | |
1302 | 1305 | | |
1303 | 1306 | | |
1304 | 1307 | | |
1305 | | - | |
| 1308 | + | |
1306 | 1309 | | |
1307 | 1310 | | |
1308 | 1311 | | |
| |||
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
| 353 | + | |
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
| |||
364 | 365 | | |
365 | 366 | | |
366 | 367 | | |
367 | | - | |
| 368 | + | |
| 369 | + | |
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1081 | 1081 | | |
1082 | 1082 | | |
1083 | 1083 | | |
1084 | | - | |
| 1084 | + | |
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
1092 | | - | |
| 1092 | + | |
1093 | 1093 | | |
1094 | 1094 | | |
1095 | 1095 | | |
| |||
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | | - | |
| 1106 | + | |
1107 | 1107 | | |
1108 | 1108 | | |
0 commit comments