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

Commit 2cf2ad0

Browse files
authored
Generators, simplifies storage of txt that is codeEscaped vs htmlEscaped (#315)
* Adds CodegenText * Replaces appDescription with CodegenText instance * Sample updated * Update CodegenOperation description * Replaces operation unescapedDescription with description * Converts operation and schema description to CodegenText * Updates parameter description * parameter schema description updated * Description updated in header * Updates requestBody description * Response description updated * Tag and SecurityScheme updated * Updates Server, PathItem, + TestCase * Fixes two java tests
1 parent a1c0818 commit 2cf2ad0

File tree

122 files changed

+311
-444
lines changed

Some content is hidden

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

122 files changed

+311
-444
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ org.openapijsonschematools.client.components.schemas to validate input payloads
152152
output classes. Json schemas allow multiple types for one schema, so a schema's validate method can have
153153
allowed input and output types.
154154

155-
156155
## Component Schemas
157156

158157
| Class | Description |
@@ -244,4 +243,3 @@ allowed input and output types.
244243
| [UriFormat.UriFormat1](docs/components/schemas/UriFormat.md#uriformat1) | |
245244
| [UriReferenceFormat.UriReferenceFormat1](docs/components/schemas/UriReferenceFormat.md#urireferenceformat1) | |
246245
| [UriTemplateFormat.UriTemplateFormat1](docs/components/schemas/UriTemplateFormat.md#uritemplateformat1) | |
247-

samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ with this_package.ApiClient(used_configuration) as api_client:
152152
"operator_id": "ADD",
153153
)
154154
try:
155+
#
155156
api_response = api_instance.post_operators(
156157
body=body,
157158
)
@@ -180,9 +181,9 @@ HTTP request | Method | Description
180181

181182
Class | Description
182183
----- | ------------
183-
[AdditionOperator](docs/components/schema/addition_operator.md) |
184-
[Operator](docs/components/schema/operator.md) |
185-
[SubtractionOperator](docs/components/schema/subtraction_operator.md) |
184+
[AdditionOperator](docs/components/schema/addition_operator.md) |
185+
[Operator](docs/components/schema/operator.md) |
186+
[SubtractionOperator](docs/components/schema/subtraction_operator.md) |
186187

187188
## Notes for Large OpenAPI documents
188189
If the OpenAPI document is large, imports in this_package.apis.tags.tag_to_api and this_package.components.schemas may fail with a

samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/addition_operator.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ this_package.components.schema.addition_operator
44
type: schemas.Schema
55
```
66

7+
## Description
8+
9+
710
## validate method
811
Input Type | Return Type | Notes
912
------------ | ------------- | -------------

samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/operator.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ this_package.components.schema.operator
44
type: schemas.Schema
55
```
66

7+
## Description
8+
9+
710
## validate method
811
Input Type | Return Type | Notes
912
------------ | ------------- | -------------

samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/components/schema/subtraction_operator.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ this_package.components.schema.subtraction_operator
44
type: schemas.Schema
55
```
66

7+
## Description
8+
9+
710
## validate method
811
Input Type | Return Type | Notes
912
------------ | ------------- | -------------

samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/docs/paths/operators/post.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ this_package.paths.operators.operation
1717
## General Info
1818
| Field | Value |
1919
| ----- | ----- |
20+
| Summary | |
2021
| Path | "/operators" |
2122
| HTTP Method | post |
2223

@@ -101,6 +102,7 @@ with this_package.ApiClient(used_configuration) as api_client:
101102
"operator_id": "ADD",
102103
)
103104
try:
105+
#
104106
api_response = api_instance.post_operators(
105107
body=body,
106108
)

samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/addition_operator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ class AdditionOperator(
122122
Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
123123
124124
Do not edit the class manually.
125+
126+
125127
"""
126128
types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict})
127129
required: typing.FrozenSet[str] = frozenset({

samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/operator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ class Operator(
2727
Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
2828
2929
Do not edit the class manually.
30+
31+
3032
"""
3133
# any type
3234
discriminator: typing.Mapping[str, typing.Mapping[str, typing.Type[schemas.Schema]]] = dataclasses.field(

samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/components/schema/subtraction_operator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ class SubtractionOperator(
122122
Ref: https://github.com/openapi-json-schema-tools/openapi-json-schema-generator
123123
124124
Do not edit the class manually.
125+
126+
125127
"""
126128
types: typing.FrozenSet[typing.Type] = frozenset({schemas.immutabledict})
127129
required: typing.FrozenSet[str] = frozenset({

samples/client/openapi_features/nonCompliantUseDiscriminatorIfCompositionFails/python/src/this_package/paths/operators/post/operation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def _post_operators(
7575
timeout: typing.Optional[typing.Union[int, float, typing.Tuple]] = None,
7676
):
7777
"""
78+
7879
:param skip_deserialization: If true then api_response.response will be set but
7980
api_response.body and api_response.headers will not be deserialized into schema
8081
class instances

0 commit comments

Comments
 (0)