This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit 881edf9
authored
Java, improves ref schemas (#291)
* Adds ref handling in schema validation, adds test of ref boolean schema validation
* Uses extension for simple refs
* Separates all json schema classes into separate files
* Fixes java tests
* Extends existing jsonschema classes in var equals class1 parent ae60db0 commit 881edf9
429 files changed
Lines changed: 8002 additions & 3817 deletions
File tree
- samples/client/petstore/java
- .openapi-generator
- src
- main/java/org/openapijsonschematools
- components
- headers
- int32jsoncontenttypeheader/content/applicationjson
- numberheader
- refcontentschemaheader/content/applicationjson
- refschemaheader
- stringheader
- parameters
- componentrefschemastringwithvalidation/content/applicationjson
- pathusername
- refschemastringwithvalidation
- requestbodies
- client/content/applicationjson
- pet/content
- applicationjson
- applicationxml
- userarray/content/applicationjson
- responses
- headerswithnobody
- headers/location
- successfulxmlandjsonarrayofpet/content
- applicationjson
- applicationxml
- successinlinecontentandheader
- content/applicationjson
- headers/someheader
- successwithjsonapiresponse
- content/applicationjson
- schemas
- paths
- anotherfakedummy/patch/responses/response200/content/applicationjson
- commonparamsubdir
- delete
- parameters
- parameter0
- parameter1
- get
- parameters/parameter0
- parameters/parameter0
- post
- parameters/parameter0
- fakeadditionalpropertieswitharrayofenums/get
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakebodywithfileschema/put/requestbody/content/applicationjson
- fakebodywithqueryparams/put
- parameters/parameter0
- requestbody/content/applicationjson
- fakecasesensitiveparams/put
- parameters
- parameter0
- parameter1
- parameter2
- fakeclassnametest/patch/responses/response200/content/applicationjson
- fakedeletecoffeeid/delete
- parameters/parameter0
- fakehealth/get/responses/response200/content/applicationjson
- fakeinlineadditionalproperties/post/requestbody/content/applicationjson
- fakeinlinecomposition/post
- parameters
- parameter0
- parameter1
- requestbody/content
- applicationjson
- multipartformdata
- responses/response200/content
- applicationjson
- multipartformdata
- fakejsonformdata/get/requestbody/content/applicationxwwwformurlencoded
- fakejsonpatch/patch/requestbody/content/applicationjsonpatchjson
- fakejsonwithcharset/post
- requestbody/content/applicationjsoncharsetutf8
- responses/response200/content/applicationjsoncharsetutf8
- fakemultiplerequestbodycontenttypes/post
- requestbody/content
- applicationjson
- multipartformdata
- responses/response200/content/applicationjson
- fakemultipleresponsebodies/get/responses
- response200/content/applicationjson
- response202/content/applicationjson
- fakemultiplesecurities/get/responses/response200/content/applicationjson
- fakeobjinquery/get
- parameters/parameter0
- fakeparametercollisions1ababselfab/post
- parameters
- parameter0
- parameter10
- parameter11
- parameter12
- parameter13
- parameter14
- parameter15
- parameter16
- parameter17
- parameter18
- parameter1
- parameter2
- parameter3
- parameter4
- parameter5
- parameter6
- parameter7
- parameter8
- parameter9
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakepetiduploadimagewithrequiredfile/post
- parameters/parameter0
- requestbody/content/multipartformdata
- responses/response200/content/applicationjson
- fakequeryparamwithjsoncontenttype/get
- parameters/parameter0/content/applicationjson
- responses/response200/content/applicationjson
- fakerefobjinquery/get
- parameters/parameter0
- fakerefsarraymodel/post
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakerefsarrayofenums/post
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakerefsboolean/post
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakerefscomposedoneofnumberwithvalidations/post
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakerefsenum/post
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakerefsmammal/post
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakerefsnumber/post
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakerefsobjectmodelwithrefprops/post
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- fakerefsstring/post
- requestbody/content/applicationjson
- responses/response200/content/applicationjson
- faketestqueryparamters/put
- parameters
- parameter0
- parameter1
- parameter2
- parameter3
- parameter4
- parameter5
- fakeuploaddownloadfile/post
- requestbody/content/applicationoctetstream
- responses/response200/content/applicationoctetstream
- fakeuploadfiles/post
- requestbody/content/multipartformdata
- responses/response200/content/applicationjson
- fakeuploadfile/post
- requestbody/content/multipartformdata
- responses/response200/content/applicationjson
- fakewildcardresponses/get/responses
- response1xx/content/applicationjson
- response200/content/applicationjson
- response2xx/content/applicationjson
- response3xx/content/applicationjson
- response4xx/content/applicationjson
- response5xx/content/applicationjson
- fake
- delete
- parameters
- parameter0
- parameter1
- parameter2
- parameter3
- parameter4
- parameter5
- get
- parameters
- parameter0
- parameter1
- parameter2
- parameter3
- parameter4
- parameter5
- requestbody/content/applicationxwwwformurlencoded
- responses/response404/content/applicationjson
- patch/responses/response200/content/applicationjson
- post/requestbody/content/applicationxwwwformurlencoded
- foo/get/responses/responsedefault/content/applicationjson
- petfindbystatus/get
- parameters/parameter0
- petfindbytags/get
- parameters/parameter0
- petpetiduploadimage/post
- parameters/parameter0
- requestbody/content/multipartformdata
- petpetid
- delete
- parameters
- parameter0
- parameter1
- get
- parameters/parameter0
- responses/response200/content
- applicationjson
- applicationxml
- post
- parameters/parameter0
- requestbody/content/applicationxwwwformurlencoded
- storeorderorderid
- delete
- parameters/parameter0
- get
- parameters/parameter0
- responses/response200/content
- applicationjson
- applicationxml
- storeorder/post
- requestbody/content/applicationjson
- responses/response200/content
- applicationjson
- applicationxml
- userlogin/get
- parameters
- parameter0
- parameter1
- responses/response200
- content
- applicationjson
- applicationxml
- headers
- xexpiresafter
- xratelimit/content/applicationjson
- userusername
- delete
- get
- responses/response200/content
- applicationjson
- applicationxml
- put
- requestbody/content/applicationjson
- user/post/requestbody/content/applicationjson
- schemas
- test/java/org/openapijsonschematools/schemas
- validators
- src/main
- java/org/openapijsonschematools/codegen/generators
- resources/java/src
- main/java/org/openapitools
- components/schemas
- SchemaClass
- schemas
- test/java/org/openapitools/schemas
- validators
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
344 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
345 | 352 | | |
346 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
347 | 357 | | |
348 | | - | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
349 | 363 | | |
350 | 364 | | |
351 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
352 | 369 | | |
353 | 370 | | |
354 | 371 | | |
| |||
368 | 385 | | |
369 | 386 | | |
370 | 387 | | |
| 388 | + | |
371 | 389 | | |
372 | 390 | | |
373 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
7 | 24 | | |
8 | 25 | | |
9 | 26 | | |
| |||
18 | 35 | | |
19 | 36 | | |
20 | 37 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 38 | + | |
29 | 39 | | |
30 | 40 | | |
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
7 | 24 | | |
8 | 25 | | |
9 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
7 | 24 | | |
8 | 25 | | |
9 | 26 | | |
| |||
15 | 32 | | |
16 | 33 | | |
17 | 34 | | |
18 | | - | |
| 35 | + | |
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 39 | + | |
26 | 40 | | |
27 | 41 | | |
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
7 | 24 | | |
8 | 25 | | |
9 | 26 | | |
| |||
15 | 32 | | |
16 | 33 | | |
17 | 34 | | |
18 | | - | |
| 35 | + | |
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 39 | + | |
26 | 40 | | |
27 | 41 | | |
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
7 | 24 | | |
8 | 25 | | |
9 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
7 | 24 | | |
8 | 25 | | |
9 | 26 | | |
| |||
15 | 32 | | |
16 | 33 | | |
17 | 34 | | |
18 | | - | |
| 35 | + | |
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 39 | + | |
26 | 40 | | |
27 | 41 | | |
Lines changed: 19 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
7 | 24 | | |
8 | 25 | | |
9 | 26 | | |
| |||
Lines changed: 21 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
7 | 24 | | |
8 | 25 | | |
9 | 26 | | |
| |||
15 | 32 | | |
16 | 33 | | |
17 | 34 | | |
18 | | - | |
| 35 | + | |
19 | 36 | | |
20 | 37 | | |
21 | 38 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 39 | + | |
26 | 40 | | |
27 | 41 | | |
0 commit comments