Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Commit cccbfb9

Browse files
authored
Java, improves package structure (#310)
* Samples regenerated * Simplifies template layout * Fixes references to templates in java client generator * Samples regen
1 parent 3baa4b2 commit cccbfb9

1,974 files changed

Lines changed: 27169 additions & 27169 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/3_0_3_unit_test/java/.openapi-generator/FILES

Lines changed: 166 additions & 166 deletions
Large diffs are not rendered by default.

samples/client/3_0_3_unit_test/java/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
2929

3030
Then import the package:
3131
```python
32-
import org.openapijsonschematools
32+
import org.openapijsonschematools.client
3333
```
3434

3535
### Setuptools
@@ -43,7 +43,7 @@ python -m pip install . --user
4343

4444
Then import the package:
4545
```python
46-
import org.openapijsonschematools
46+
import org.openapijsonschematools.client
4747
```
4848

4949
## Usage Notes
@@ -242,22 +242,22 @@ All URIs are relative to the selected server
242242
| [UriTemplateFormat.UriTemplateFormat1](docs/components/schemas/UriTemplateFormat.md#uritemplateformat1) | |
243243

244244
## Notes for Large OpenAPI documents
245-
If the OpenAPI document is large, imports in org.openapijsonschematools.apis.tags.tag_to_api and org.openapijsonschematools.components.schemass may fail with a
245+
If the OpenAPI document is large, imports in org.openapijsonschematools.client.apis.tags.tag_to_api and org.openapijsonschematools.client.components.schemass may fail with a
246246
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
247247

248248
Solution 1:
249249
Use specific imports for apis and models like:
250-
- tagged api: `from org.openapijsonschematools.apis.tags.default_api import DefaultApi`
251-
- api for one path: `from org.openapijsonschematools.apis.paths.some_path import SomePath`
252-
- api for one operation (path + verb): `from org.openapijsonschematools.paths.some_path.get import ApiForget`
253-
- single model import: `from org.openapijsonschematools.components.schemas.pet import Pet`
250+
- tagged api: `from org.openapijsonschematools.client.apis.tags.default_api import DefaultApi`
251+
- api for one path: `from org.openapijsonschematools.client.apis.paths.some_path import SomePath`
252+
- api for one operation (path + verb): `from org.openapijsonschematools.client.paths.some_path.get import ApiForget`
253+
- single model import: `from org.openapijsonschematools.client.components.schemas.pet import Pet`
254254

255255
Solution 2:
256256
Before importing the package, adjust the maximum recursion limit as shown below:
257257
```
258258
import sys
259259
sys.setrecursionlimit(1500)
260-
import org.openapijsonschematools
261-
from org.openapijsonschematools.apis.tags.tag_to_api import *
262-
from org.openapijsonschematools.components.schemass import *
260+
import org.openapijsonschematools.client
261+
from org.openapijsonschematools.client.apis.tags.tag_to_api import *
262+
from org.openapijsonschematools.client.components.schemass import *
263263
```

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAllowsASchemaWhichShouldValidate.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AdditionalpropertiesAllowsASchemaWhichShouldValidate
2-
org.openapijsonschematools.components.schemas.AdditionalpropertiesAllowsASchemaWhichShouldValidate.java
2+
org.openapijsonschematools.client.components.schemas.AdditionalpropertiesAllowsASchemaWhichShouldValidate.java
33
public class AdditionalpropertiesAllowsASchemaWhichShouldValidate
44

55
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
@@ -58,7 +58,7 @@ extends AnyTypeJsonSchema
5858

5959
A schema class that validates payloads
6060

61-
| Methods Inherited from class org.openapijsonschematools.schemas.AnyTypeJsonSchema |
61+
| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema |
6262
| ------------------------------------------------------------------ |
6363
| validate |
6464

@@ -68,7 +68,7 @@ extends AnyTypeJsonSchema
6868

6969
A schema class that validates payloads
7070

71-
| Methods Inherited from class org.openapijsonschematools.schemas.AnyTypeJsonSchema |
71+
| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema |
7272
| ------------------------------------------------------------------ |
7373
| validate |
7474

@@ -78,7 +78,7 @@ extends BooleanJsonSchema
7878

7979
A schema class that validates payloads
8080

81-
| Methods Inherited from class org.openapijsonschematools.schemas.BooleanJsonSchema |
81+
| Methods Inherited from class org.openapijsonschematools.client.schemas.BooleanJsonSchema |
8282
| ------------------------------------------------------------------ |
8383
| validate |
8484

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesAreAllowedByDefault.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AdditionalpropertiesAreAllowedByDefault
2-
org.openapijsonschematools.components.schemas.AdditionalpropertiesAreAllowedByDefault.java
2+
org.openapijsonschematools.client.components.schemas.AdditionalpropertiesAreAllowedByDefault.java
33
public class AdditionalpropertiesAreAllowedByDefault
44

55
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
@@ -65,7 +65,7 @@ extends AnyTypeJsonSchema
6565

6666
A schema class that validates payloads
6767

68-
| Methods Inherited from class org.openapijsonschematools.schemas.AnyTypeJsonSchema |
68+
| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema |
6969
| ------------------------------------------------------------------ |
7070
| validate |
7171

@@ -75,7 +75,7 @@ extends AnyTypeJsonSchema
7575

7676
A schema class that validates payloads
7777

78-
| Methods Inherited from class org.openapijsonschematools.schemas.AnyTypeJsonSchema |
78+
| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema |
7979
| ------------------------------------------------------------------ |
8080
| validate |
8181

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesCanExistByItself.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AdditionalpropertiesCanExistByItself
2-
org.openapijsonschematools.components.schemas.AdditionalpropertiesCanExistByItself.java
2+
org.openapijsonschematools.client.components.schemas.AdditionalpropertiesCanExistByItself.java
33
public class AdditionalpropertiesCanExistByItself
44

55
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
@@ -52,7 +52,7 @@ extends BooleanJsonSchema
5252

5353
A schema class that validates payloads
5454

55-
| Methods Inherited from class org.openapijsonschematools.schemas.BooleanJsonSchema |
55+
| Methods Inherited from class org.openapijsonschematools.client.schemas.BooleanJsonSchema |
5656
| ------------------------------------------------------------------ |
5757
| validate |
5858

samples/client/3_0_3_unit_test/java/docs/components/schemas/AdditionalpropertiesShouldNotLookInApplicators.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AdditionalpropertiesShouldNotLookInApplicators
2-
org.openapijsonschematools.components.schemas.AdditionalpropertiesShouldNotLookInApplicators.java
2+
org.openapijsonschematools.client.components.schemas.AdditionalpropertiesShouldNotLookInApplicators.java
33
public class AdditionalpropertiesShouldNotLookInApplicators
44

55
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
@@ -108,7 +108,7 @@ extends AnyTypeJsonSchema
108108

109109
A schema class that validates payloads
110110

111-
| Methods Inherited from class org.openapijsonschematools.schemas.AnyTypeJsonSchema |
111+
| Methods Inherited from class org.openapijsonschematools.client.schemas.AnyTypeJsonSchema |
112112
| ------------------------------------------------------------------ |
113113
| validate |
114114

@@ -118,7 +118,7 @@ extends BooleanJsonSchema
118118

119119
A schema class that validates payloads
120120

121-
| Methods Inherited from class org.openapijsonschematools.schemas.BooleanJsonSchema |
121+
| Methods Inherited from class org.openapijsonschematools.client.schemas.BooleanJsonSchema |
122122
| ------------------------------------------------------------------ |
123123
| validate |
124124

samples/client/3_0_3_unit_test/java/docs/components/schemas/Allof.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Allof
2-
org.openapijsonschematools.components.schemas.Allof.java
2+
org.openapijsonschematools.client.components.schemas.Allof.java
33
public class Allof
44

55
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
@@ -89,7 +89,7 @@ extends StringJsonSchema
8989

9090
A schema class that validates payloads
9191

92-
| Methods Inherited from class org.openapijsonschematools.schemas.StringJsonSchema |
92+
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
9393
| ------------------------------------------------------------------ |
9494
| validate |
9595

samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofCombinedWithAnyofOneof.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AllofCombinedWithAnyofOneof
2-
org.openapijsonschematools.components.schemas.AllofCombinedWithAnyofOneof.java
2+
org.openapijsonschematools.client.components.schemas.AllofCombinedWithAnyofOneof.java
33
public class AllofCombinedWithAnyofOneof
44

55
A class that contains necessary nested schema classes, and classes to store validated list and map payloads

samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofSimpleTypes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AllofSimpleTypes
2-
org.openapijsonschematools.components.schemas.AllofSimpleTypes.java
2+
org.openapijsonschematools.client.components.schemas.AllofSimpleTypes.java
33
public class AllofSimpleTypes
44

55
A class that contains necessary nested schema classes, and classes to store validated list and map payloads

samples/client/3_0_3_unit_test/java/docs/components/schemas/AllofWithBaseSchema.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# AllofWithBaseSchema
2-
org.openapijsonschematools.components.schemas.AllofWithBaseSchema.java
2+
org.openapijsonschematools.client.components.schemas.AllofWithBaseSchema.java
33
public class AllofWithBaseSchema
44

55
A class that contains necessary nested schema classes, and classes to store validated list and map payloads
@@ -119,7 +119,7 @@ extends NullJsonSchema
119119

120120
A schema class that validates payloads
121121

122-
| Methods Inherited from class org.openapijsonschematools.schemas.NumberJsonSchema |
122+
| Methods Inherited from class org.openapijsonschematools.client.schemas.NumberJsonSchema |
123123
| ------------------------------------------------------------------ |
124124
| validate |
125125

@@ -174,7 +174,7 @@ extends StringJsonSchema
174174

175175
A schema class that validates payloads
176176

177-
| Methods Inherited from class org.openapijsonschematools.schemas.StringJsonSchema |
177+
| Methods Inherited from class org.openapijsonschematools.client.schemas.StringJsonSchema |
178178
| ------------------------------------------------------------------ |
179179
| validate |
180180

0 commit comments

Comments
 (0)