Skip to content

Commit

Permalink
Generate samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythir committed May 31, 2024
1 parent 48fb28c commit 1f752ac
Show file tree
Hide file tree
Showing 42 changed files with 293 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ print {{classname}}.to_json()
{{/isEnum}}
{{#isEnum}}
## Enum

{{#allowableValues}}{{#enumVars}}
* `{{name}}` (value: `{{{value}}}`)
{{/enumVars}}{{/allowableValues}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ print {{classname}}.to_json()
{{/isEnum}}
{{#isEnum}}
## Enum

{{#allowableValues}}{{#enumVars}}
* `{{name}}` (value: `{{{value}}}`)
{{/enumVars}}{{/allowableValues}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ print({{classname}}.to_json())
{{/isEnum}}
{{#isEnum}}
## Enum

{{#allowableValues}}{{#enumVars}}
* `{{name}}` (value: `{{{value}}}`)
{{/enumVars}}{{/allowableValues}}
Expand Down
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
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# OuterEnumIntegerDefaultValue


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

* `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,9 +1,11 @@
# SingleRefType


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

* `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
Loading

0 comments on commit 1f752ac

Please sign in to comment.