This repository was archived by the owner on Dec 25, 2024. It is now read-only.
Commit 02d098c
authored
Java, reduces unused imports (#292)
* Removes imports when schema is a ref to a component schema
* Removes unneeded boolean and null schema imports
* Improves imports for IntJsonSchema
* Eliminates unneeded number schema imports
* Removes unneeded string schema imports
* Fixes date and datetime imports
* Fixes string detection
* Removes unneeded map imports
* Removes unneeded list schema imports
* Fixes imports for AnyType and NotAnyType
* Improves close brace, adds missing number var equals class case
* Fixes required indentation
* Adds anytype detection
* Adjusts anytype and map imports more
* Set and LinkedHashSet import improvement
* Tweak string imports more
* Removes schema shared imports template
* Adds missing string import for binary schema
* Generator docs regenerated1 parent 881edf9 commit 02d098c
356 files changed
Lines changed: 2217 additions & 11346 deletions
File tree
- docs/generators
- samples/client/petstore/java/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
- src/main
- java/org/openapijsonschematools/codegen/generators
- openapimodels
- resources/java/src/main/java/org/openapitools
- components/schemas
- SchemaClass
- schemas
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 | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
324 | | - | |
325 | | - | |
| 324 | + | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | | - | |
| 352 | + | |
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 2 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 3 | | |
34 | 4 | | |
35 | 5 | | |
36 | 6 | | |
37 | 7 | | |
38 | | - | |
39 | | - | |
| 8 | + | |
40 | 9 | | |
Lines changed: 2 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 2 | | |
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 | 3 | | |
34 | 4 | | |
35 | 5 | | |
36 | 6 | | |
37 | 7 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 2 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 3 | | |
34 | 4 | | |
35 | 5 | | |
36 | 6 | | |
37 | 7 | | |
38 | 8 | | |
39 | | - | |
40 | | - | |
| 9 | + | |
41 | 10 | | |
Lines changed: 1 addition & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 2 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 3 | | |
34 | 4 | | |
35 | 5 | | |
36 | 6 | | |
37 | 7 | | |
38 | 8 | | |
39 | | - | |
40 | | - | |
| 9 | + | |
41 | 10 | | |
Lines changed: 2 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 2 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 3 | | |
34 | 4 | | |
35 | 5 | | |
36 | 6 | | |
37 | 7 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 2 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 3 | | |
34 | 4 | | |
35 | 5 | | |
36 | 6 | | |
37 | 7 | | |
38 | 8 | | |
39 | | - | |
40 | | - | |
| 9 | + | |
41 | 10 | | |
Lines changed: 2 additions & 38 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 2 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 3 | | |
34 | 4 | | |
35 | 5 | | |
36 | 6 | | |
37 | 7 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 8 | + | |
| 9 | + | |
Lines changed: 1 addition & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 2 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 3 | | |
34 | 4 | | |
35 | 5 | | |
36 | 6 | | |
37 | 7 | | |
38 | 8 | | |
39 | | - | |
40 | | - | |
| 9 | + | |
41 | 10 | | |
0 commit comments