Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
{{#description}}{{&description}}
{{/description}}

{{^isEnum}}
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}
{{/vars}}

{{^isEnum}}
## Example

```python
Expand All @@ -29,6 +29,12 @@ print {{classname}}.to_json()
{{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}_from_dict = {{classname}}.from_dict({{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}_dict)
```
{{/isEnum}}
{{#isEnum}}
## Enum
{{#allowableValues}}{{#enumVars}}
* `{{name}}` (value: `{{{value}}}`)
{{/enumVars}}{{/allowableValues}}
{{/isEnum}}
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

{{/model}}{{/models}}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
{{#description}}{{&description}}
{{/description}}

{{^isEnum}}
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}
{{/vars}}

{{^isEnum}}
## Example

```python
Expand All @@ -28,6 +28,12 @@ print {{classname}}.to_json()
{{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}_from_dict = {{classname}}.from_dict({{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}_dict)
```
{{/isEnum}}
{{#isEnum}}
## Enum
{{#allowableValues}}{{#enumVars}}
* `{{name}}` (value: `{{{value}}}`)
{{/enumVars}}{{/allowableValues}}
{{/isEnum}}
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

{{/model}}{{/models}}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
{{#description}}{{&description}}
{{/description}}

{{^isEnum}}
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
{{#vars}}**{{name}}** | {{#isPrimitiveType}}**{{dataType}}**{{/isPrimitiveType}}{{^isPrimitiveType}}[**{{dataType}}**]({{complexType}}.md){{/isPrimitiveType}} | {{description}} | {{^required}}[optional] {{/required}}{{#isReadOnly}}[readonly] {{/isReadOnly}}{{#defaultValue}}[default to {{{.}}}]{{/defaultValue}}
{{/vars}}

{{^isEnum}}
## Example

```python
Expand All @@ -29,6 +29,12 @@ print({{classname}}.to_json())
{{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}_from_dict = {{classname}}.from_dict({{#lambda.snakecase}}{{classname}}{{/lambda.snakecase}}_dict)
```
{{/isEnum}}
{{#isEnum}}
## Enum
{{#allowableValues}}{{#enumVars}}
* `{{name}}` (value: `{{{value}}}`)
{{/enumVars}}{{/allowableValues}}
{{/isEnum}}
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

{{/model}}{{/models}}
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# StringEnumRef


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `SUCCESS` (value: `'success'`)

* `FAILURE` (value: `'failure'`)

* `UNCLASSIFIED` (value: `'unclassified'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
10 changes: 7 additions & 3 deletions samples/client/echo_api/python-pydantic-v1/docs/StringEnumRef.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# StringEnumRef


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Enum

* `SUCCESS` (value: `'success'`)

* `FAILURE` (value: `'failure'`)

* `UNCLASSIFIED` (value: `'unclassified'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
9 changes: 6 additions & 3 deletions samples/client/echo_api/python/docs/StringEnumRef.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# StringEnumRef


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `SUCCESS` (value: `'success'`)

* `FAILURE` (value: `'failure'`)

* `UNCLASSIFIED` (value: `'unclassified'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# EnumClass


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `ABC` (value: `'_abc'`)

* `MINUS_EFG` (value: `'-efg'`)

* `LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS` (value: `'(xyz)'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# EnumString1


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `A` (value: `'a'`)

* `B` (value: `'b'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# EnumString2


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `C` (value: `'c'`)

* `D` (value: `'d'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# OuterEnum


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `PLACED` (value: `'placed'`)

* `APPROVED` (value: `'approved'`)

* `DELIVERED` (value: `'delivered'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# OuterEnumDefaultValue


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `PLACED` (value: `'placed'`)

* `APPROVED` (value: `'approved'`)

* `DELIVERED` (value: `'delivered'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# OuterEnumInteger


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `NUMBER_0` (value: `0`)

* `NUMBER_1` (value: `1`)

* `NUMBER_2` (value: `2`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# OuterEnumIntegerDefaultValue


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `NUMBER_MINUS_1` (value: `-1`)

* `NUMBER_0` (value: `0`)

* `NUMBER_1` (value: `1`)

* `NUMBER_2` (value: `2`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# SingleRefType


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `ADMIN` (value: `'admin'`)

* `USER` (value: `'user'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
# SpecialCharacterEnum


## Properties
## Enum

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
* `ENUM_456` (value: `'456'`)

* `ENUM_123ABC` (value: `'123abc'`)

* `UNDERSCORE` (value: `'_'`)

* `SPACE` (value: `' '`)

* `AMPERSAND` (value: `'&'`)

* `DOLLAR` (value: `'$'`)

* `GREATER_THAN_EQUAL` (value: `'>='`)

* `THIS_IS_EXCLAMATION` (value: `'this_is_!'`)

* `IMPORT` (value: `'import'`)

* `HELLO_WORLD` (value: `' hello world '`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# EnumClass


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Enum

* `ABC` (value: `'_abc'`)

* `MINUS_EFG` (value: `'-efg'`)

* `LEFT_PARENTHESIS_XYZ_RIGHT_PARENTHESIS` (value: `'(xyz)'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# EnumString1


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Enum

* `A` (value: `'a'`)

* `B` (value: `'b'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# EnumString2


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Enum

* `C` (value: `'c'`)

* `D` (value: `'d'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# OuterEnum


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Enum

* `PLACED` (value: `'placed'`)

* `APPROVED` (value: `'approved'`)

* `DELIVERED` (value: `'delivered'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# OuterEnumDefaultValue


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Enum

* `PLACED` (value: `'placed'`)

* `APPROVED` (value: `'approved'`)

* `DELIVERED` (value: `'delivered'`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# OuterEnumInteger


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
## Enum

* `NUMBER_0` (value: `0`)

* `NUMBER_1` (value: `1`)

* `NUMBER_2` (value: `2`)

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
Loading