This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit ad77012
authored
Java, adds map builders (#347)
* Adds two general interfaces that will be used by map builder
* Fixes containerJsonPathPiece reference + creates MapBuilder instance
* Adds map builder with build method
* Wires in input type of mapValueSchem in builder, sets interfaceClassName in COdegenSchema
* Adds interfaces for required properties setters
* Fixes variable name collision
* Adds setter methods in setter interfaces for different types
* Fixes key put
* Generates all of the builders
* Makes first map builder accept no arguments
* Removes unused interface
* Removes ReqProps txt in builder names
* Adds missing BaseBuilder import, changes camelCase->pascalCase, anchorPiece->kebabCase, adds camelCase
* Updates method case names to be accurate
* Adds camelCase and uses it in java setter
* Adds missing BaseBuilder import
* Fixes ListBuilderTest
* Adds interfaces for optional properties
* Adjusts map builders to always begin with a no-args constructor
* Adds optional properties to first builder, which is the last invoked builder
* Adds setter interface for non null non addProps false additional properties
* Adds next builder method for additional property
* Adds setter interface requirement for schemas with custom addprops
* Moves throwIfKeyKnown into MapMaker class
* Adds requiredKeys + optionalKeys to last invoked builder
* Adds throwing of exceptions when setting additional property with invalid key
* Stores knownKeys in map input class last builder
* Adds throws signature to addprops setters
* Adds UnsetAddPropsSetter
* Has final invocation builder extends UnsetAddPropsSetter
* MapMaker changed to MapUtils and moved
* Adds Map in builder names
* Updates first invoked builder name to not contain bitStr
* Removes duplicate map input classes
* Adds all map builder class names to docs
* Adds builder constructor and build method to docs
* Produces documentation info for all map builder required property methods
* Adds linkes from one builder to the next in schema docs, all required setters now documented
* Petstore regen
* Fixes greater than and less than signs in schema docs for maps
* Removes lingering >
* Adds ref handling in req and optional prop builder setters
* Handles self ref
* FIxes handling of self references in map builder
* Fixes addProps type in schema docs
* Petstore regen
* Adds unset addProp setters to map schema docs
* Adds additional property to map example when addProp is set
* Ensures that typeToExample is ordered
* Ensures that getMapFromSchema is ordered
* Uses the key named additionalProperty so sample code can detect additional properties
* Stores CodegenKey in schema example keys, isAdditionalProperty added to CodegenKey
* Updates payload rendered to use list constructor add method
* Uses map builder in schema docs
* Updates the key for the additional property in the code samples
* Samples regen
* Ensures additional properties setter is only on the first (last invoked) builder
* Checker framework updated
* Moves getMapBuilders implementation into the java generator
* Removes isAdditionalProperty from CodegenKey
* petstore regen
* Samples regen1 parent 82cb963 commit ad77012
File tree
797 files changed
+34770
-7826
lines changed- samples/client
- 3_0_3_unit_test
- java
- .openapi-generator
- docs/components/schemas
- src
- main/java/org/openapijsonschematools/client
- components/schemas
- schemas
- validation
- test/java/org/openapijsonschematools/client
- components/schemas
- schemas
- python
- src/unit_test_api/apis/tags
- 3_1_0_unit_test/python
- src/unit_test_api/apis/tags
- openapi_features
- nonCompliantUseDiscriminatorIfCompositionFails/python
- security/python
- src/this_package/apis/tags
- petstore
- java
- .openapi-generator
- docs
- components
- requestbodies/userarray/content/applicationjson
- responses
- successfulxmlandjsonarrayofpet/content
- applicationjson
- applicationxml
- successinlinecontentandheader/content/applicationjson
- schemas
- paths
- commonparamsubdir
- delete/parameters/parameter1
- parameters/parameter0
- fakeinlineadditionalproperties/post/requestbody/content/applicationjson
- fakeinlinecomposition/post
- parameters
- parameter0
- parameter1
- requestbody/content
- applicationjson
- multipartformdata
- responses/response200/content
- applicationjson
- multipartformdata
- fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded
- fakemultiplerequestbodycontenttypes/post/requestbody/content
- applicationjson
- multipartformdata
- fakeobjinquery/get/parameters/parameter0
- fakepetiduploadimagewithrequiredfile/post/requestbody/content/multipartformdata
- faketestqueryparamters/put/parameters
- parameter0
- parameter1
- parameter2
- parameter3
- parameter4
- fakeuploadfiles/post/requestbody/content/multipartformdata
- fakeuploadfile/post/requestbody/content/multipartformdata
- fake
- delete/parameters
- parameter1
- parameter4
- get
- parameters
- parameter0
- parameter1
- parameter2
- parameter3
- parameter4
- parameter5
- requestbody/content/applicationxwwwformurlencoded
- post/requestbody/content/applicationxwwwformurlencoded
- foo/get/responses/responsedefault/content/applicationjson
- petfindbystatus/get/parameters/parameter0
- petfindbytags/get/parameters/parameter0
- petpetiduploadimage/post/requestbody/content/multipartformdata
- petpetid/post/requestbody/content/applicationxwwwformurlencoded
- storeorderorderid/get/parameters/parameter0
- src
- main/java/org/openapijsonschematools/client
- components
- responses
- headerswithnobody
- successinlinecontentandheader
- content/applicationjson
- successwithjsonapiresponse
- schemas
- paths
- commonparamsubdir
- delete
- get
- post
- fakebodywithqueryparams/put
- fakecasesensitiveparams/put
- fakedeletecoffeeid/delete
- fakeinlineadditionalproperties/post/requestbody/content/applicationjson
- fakeinlinecomposition/post
- parameters
- parameter0
- parameter1
- requestbody/content
- applicationjson
- multipartformdata
- responses/response200/content
- applicationjson
- multipartformdata
- fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded
- fakemultiplerequestbodycontenttypes/post/requestbody/content
- applicationjson
- multipartformdata
- fakeobjinquery/get
- parameters/parameter0
- fakeparametercollisions1ababselfab/post
- fakepetiduploadimagewithrequiredfile/post
- requestbody/content/multipartformdata
- fakequeryparamwithjsoncontenttype/get
- fakerefobjinquery/get
- faketestqueryparamters/put
- fakeuploadfiles/post/requestbody/content/multipartformdata
- fakeuploadfile/post/requestbody/content/multipartformdata
- fake
- delete
- get
- requestbody/content/applicationxwwwformurlencoded
- post/requestbody/content/applicationxwwwformurlencoded
- foo/get/responses/responsedefault/content/applicationjson
- petfindbystatus/get
- petfindbytags/get
- petpetiduploadimage/post
- requestbody/content/multipartformdata
- petpetid
- delete
- get
- post
- requestbody/content/applicationxwwwformurlencoded
- storeorderorderid
- delete
- get
- userlogin/get
- responses/response200
- userusername
- delete
- get
- put
- schemas
- validation
- test/java/org/openapijsonschematools/client/schemas
- python
- src/petstore_api/apis/tags
- src
- main
- java/org/openapijsonschematools/codegen
- generatorrunner
- generators
- openapimodels
- resources
- java
- src
- main/java/packagename
- components
- schemas
- SchemaClass
- helpers
- types
- schemas
- validation
- test/java/packagename
- components/schemas
- schemas
- python
- apis
- paths
- tags
- components
- headers
- parameters
- request_bodies
- responses
- schemas
- schema_cls
- validate
- types
- security_schemes
- configurations
- paths/path/verb
- servers
- test/java/org/openapijsonschematools/codegen/generators
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
797 files changed
+34770
-7826
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
202 | 203 | | |
203 | 204 | | |
204 | 205 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| 236 | + | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| |||
Lines changed: 35 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | | - | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | | - | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
74 | 98 | | |
75 | 99 | | |
76 | 100 | | |
| |||
Lines changed: 39 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
55 | 85 | | |
56 | 86 | | |
57 | 87 | | |
| |||
65 | 95 | | |
66 | 96 | | |
67 | 97 | | |
68 | | - | |
| 98 | + | |
69 | 99 | | |
70 | 100 | | |
71 | 101 | | |
| |||
Lines changed: 16 additions & 8 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 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
69 | 77 | | |
70 | 78 | | |
71 | 79 | | |
| |||
0 commit comments