mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-03 08:46:55 +00:00
[JavaScript] add oneOf support (#13561)
* JS add oneOf support * add validate json method * add oneOf support to JS client * update samples * add todo in anyof * switch to composed.oneOf * update oneOf to support primitive types * update messages * minor fix, add more tests * update samples * fix npe in from model * fix syntax error in length check * update samples
This commit is contained in:
10
samples/client/petstore/javascript-apollo/docs/BasquePig.md
Normal file
10
samples/client/petstore/javascript-apollo/docs/BasquePig.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# OpenApiPetstore.BasquePig
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**className** | **String** | |
|
||||
**color** | **String** | |
|
||||
|
||||
|
||||
8
samples/client/petstore/javascript-apollo/docs/Color.md
Normal file
8
samples/client/petstore/javascript-apollo/docs/Color.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# OpenApiPetstore.Color
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
|
||||
|
||||
10
samples/client/petstore/javascript-apollo/docs/DanishPig.md
Normal file
10
samples/client/petstore/javascript-apollo/docs/DanishPig.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# OpenApiPetstore.DanishPig
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**className** | **String** | |
|
||||
**size** | **Number** | |
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# OpenApiPetstore.NestedColor
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**size** | **Number** | | [optional]
|
||||
**nested** | [**Color**](Color.md) | | [optional]
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
# OpenApiPetstore.NestedOneOf
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**size** | **Number** | | [optional]
|
||||
**nestedPig** | [**Pig**](Pig.md) | | [optional]
|
||||
|
||||
|
||||
11
samples/client/petstore/javascript-apollo/docs/Pig.md
Normal file
11
samples/client/petstore/javascript-apollo/docs/Pig.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# OpenApiPetstore.Pig
|
||||
|
||||
## Properties
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**className** | **String** | |
|
||||
**color** | **String** | |
|
||||
**size** | **Number** | |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user