This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit b97b0f5
committed
v2 codegenProperty cleanup (#102)
* Adds allOf anyOf oneOf not to codegenProp + Model
* Replaces all template usage of composedSchemas with allOf/anyOf/oneOf
* Removes CodegenComposedSchemas
* Removes usage of getComposedSchemas
* Removes getter and setter
* Removes more unused methods
* Removes dataFormat + datatypeWithEnum
* Removes dataTupe template usage
* Removes dataType
* Removes isModel
* Removes isPrimitiveType
* Further isPrimitiveType removal
* Removes defaultValueWithParam
* Removes containerType
* Removes jsonSchema
* Removes min + max
* Removes hasMoreNonReadOnly
* Removes isContainer
* Removes isFreeFormObject
* Removes isInnerEnum
* Removes mostInnerItems
* Removes isInherited
* Removes enumName
* Removes additionalPropertiesIsAnyType
* Adds spec version comment in JsonSchema.java
* Exports python code to defaultCodegen
* Removes uniqueItemsBoolean
* Removes updatePropertyForArray
* Renames getRequiredVarsMap to getRequiredProperties
* Adds properties + optionalProperties
* Switches some vars to properties
* Uses LinkedHashMap for property maps to preserve insertion order, uses optionalProperties in schema_doc.handlebars
* Removes hasVars
* Removes hasRequired
* Uses more properties and optionalProperties
* Partial update using new data sources
* getitem type hint tweaks
* Improves type hints
* Fixes composed property json paths
* Removes schemaIsFromAdditionalProperties from fromProperty
* Removes name from fromProperty
* Fixes tempate typo
* Removes required from fromProperty
* Removes required from fromProperty
* Removes vars + requiredVars and unusedmethods from DefaultCodegen
* Regenerates sample
* Tweaks required object property docs
* Generates docs for required properties with no defining schema, addProps unset
* Fixes new type hint definitions
* Renames composed schemas
* Fixes schema definition names for content schemas
* Adds CodegenKey
* Stops special handling of additionalProperties baseName
* Removes nameInCamelCase + nameInSnakeCase, uses CodegenKey in templates
* Fixes composed schema names
* Removes codegenProperty.baseName
* name.name -> name.getName, removes addPropsUnset template var
* Changes key on properties/requiredProperties/optionalProperties form String to CodegenKey
* Uses key info to prevent invalid names in required property type hints and new signatures
* Removes generateAliasAsModel
* Further removal of GenerateAliasAsModel
* Fixes 3 python tests
* Partial java test fixes
* Adds getKey, fixes more java tests
* Removes generate alias as model, updates more java tests
* Fixes more java tests
* Syntax errors in java tests reduced to 49
* Reduces java syntax errors down to 40
* Reduces java syntax errors down to 30
* Reduces java syntax errors down to 20
* Reduces java syntax errors down to 7
* Reduces java syntax errors down to 0
* Reduces java syntax errors down to 240
* Reduces java syntax errors down to 212
* Reduces java syntax errors down to 198
* Reduces java syntax errors down to 184
* Reduces java syntax errors down to 158
* Reduces java syntax errors down to 136
* Reduces java syntax errors down to 98
* Reduces java syntax errors down to 76
* Reduces java syntax errors down to 50
* Fixes all syntax errors
* Removes JavaClient codegentest
* Removes JavaInheritancetest
* Removes JavaModelEnumtest
* Fixes 2 tests
* Reduces test failure qty to 33
* Reduces test failure qty to 23
* Reduces test failure qty to 11
* Reduces test failure qty to 7
* Reduces test failure qty to 3
* Reduces test failure qty to 2
* Reduces test failure qty to 1
* Fixes all java tests
* Removes unused java client tests
* Samples regenerated
* Regenerates samples
* Samples regen again1 parent 02f8189 commit b97b0f5
1,360 files changed
Lines changed: 8654 additions & 11040 deletions
File tree
- modules
- openapi-json-schema-generator-cli/src/main/java/org/openapitools/codegen/cmd
- openapi-json-schema-generator-core/src/main/java/org/openapitools/codegen/config
- openapi-json-schema-generator/src
- main
- java/org/openapitools/codegen
- config
- languages
- utils
- resources/python
- model_templates
- test
- java/org/openapitools/codegen
- java
- python
- utils
- resources/3_0
- python
- samples/openapi3/client
- 3_0_3_unit_test/python
- 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
- components/schema
- unit_test_api
- components/schema
- features/nonCompliantUseDiscriminatorIfCompositionFails/python
- docs
- apis/tags/default_api
- components/schema
- this_package
- components/schema
- 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
- headers
- parameters
- request_bodies
- responses
- schema
- petstore_api
- components
- headers
- parameters
- responses
- success_inline_content_and_header_response
- success_with_json_api_response_response
- schemas
- schema
- paths
- fake_inline_additional_properties/post
- fake_inline_composition/post
- response_for_200
- fake_json_form_data/get
- fake_obj_in_query/get
- fake_pet_id_upload_image_with_required_file/post
- fake_query_param_with_json_content_type/get
- fake_upload_files/post
- fake_upload_file/post
- fake
- get
- post
- foo/get/response_for_default
- pet_pet_id_upload_image/post
- pet_pet_id/post
- user_login/get/response_for_200
- 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.
modules/openapi-json-schema-generator-cli/src/main/java/org/openapitools/codegen/cmd/Generate.java
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | 266 | | |
270 | 267 | | |
271 | 268 | | |
| |||
427 | 424 | | |
428 | 425 | | |
429 | 426 | | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | 427 | | |
435 | 428 | | |
436 | 429 | | |
| |||
Lines changed: 0 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
63 | | - | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
| |||
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
85 | | - | |
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
| |||
109 | 106 | | |
110 | 107 | | |
111 | 108 | | |
112 | | - | |
113 | 109 | | |
114 | 110 | | |
115 | 111 | | |
| |||
227 | 223 | | |
228 | 224 | | |
229 | 225 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | 226 | | |
240 | 227 | | |
241 | 228 | | |
| |||
308 | 295 | | |
309 | 296 | | |
310 | 297 | | |
311 | | - | |
312 | 298 | | |
313 | 299 | | |
314 | 300 | | |
| |||
447 | 433 | | |
448 | 434 | | |
449 | 435 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | 436 | | |
463 | 437 | | |
464 | 438 | | |
| |||
586 | 560 | | |
587 | 561 | | |
588 | 562 | | |
589 | | - | |
590 | 563 | | |
591 | 564 | | |
592 | 565 | | |
| |||
604 | 577 | | |
605 | 578 | | |
606 | 579 | | |
607 | | - | |
608 | 580 | | |
609 | 581 | | |
610 | 582 | | |
| |||
624 | 596 | | |
625 | 597 | | |
626 | 598 | | |
627 | | - | |
628 | 599 | | |
629 | 600 | | |
630 | 601 | | |
| |||
Lines changed: 0 additions & 74 deletions
This file was deleted.
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
| |||
348 | 346 | | |
349 | 347 | | |
350 | 348 | | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | 349 | | |
358 | 350 | | |
359 | 351 | | |
| |||
modules/openapi-json-schema-generator/src/main/java/org/openapitools/codegen/CodegenConstants.java
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | 369 | | |
376 | 370 | | |
377 | 371 | | |
| |||
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 51 | | |
61 | 52 | | |
62 | 53 | | |
| |||
Lines changed: 38 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 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
0 commit comments