Combine javascript and javascript-apollo generators (#13270)

* Combine javascript and javascript-apollo generator functionality

* Combine javascript and javascript-apollo templates

* update configs

* deprecate javascript-apollo generator

* bonus magic string deletion 

* update samples

* update generator docs

* fix: include .babelrc in apollo generation

* update samples

* update samples

* rename javascript-apollo to javascript-apollo-deprecated

* fix javascript apollo library template

Apollo library now uses the partial_model_generic template file from the ES6 library, as it includes many fixes and improvements (including handling models with ill-named attributes)

* update samples

* Create javascript-apollo-deprecated.md

* Updated javascript generator template's gitignore

Updates .gitignore with that from https://github.com/github/gitignore/blob/main/Node.gitignore

Main reason for the update is to ignore the 'dist' folder with compiled files by default.

* javascript generator: merge api_test template files

The only difference is that Apollo is not designed for browser, so having a "if(browser)" check is useless, but doesn't hurt.

* update docs

* cleanup

* avoid possible config clash

* update javascript-apollo sample

* update javascript-es6 sample

I kept the pom.xml from before

* update javascript-promise-es6 sample

kept pom.xml

* update samples
This commit is contained in:
João Neto
2022-08-27 07:29:35 +02:00
committed by GitHub
parent 2c22a01779
commit 62a0878bae
353 changed files with 11411 additions and 5169 deletions

View File

@@ -1,9 +0,0 @@
# OpenApiPetstore.AdditionalPropertiesAnyType
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]

View File

@@ -1,9 +0,0 @@
# OpenApiPetstore.AdditionalPropertiesArray
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]

View File

@@ -1,9 +0,0 @@
# OpenApiPetstore.AdditionalPropertiesBoolean
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]

View File

@@ -1,9 +0,0 @@
# OpenApiPetstore.AdditionalPropertiesInteger
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]

View File

@@ -1,9 +0,0 @@
# OpenApiPetstore.AdditionalPropertiesNumber
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]

View File

@@ -1,9 +0,0 @@
# OpenApiPetstore.AdditionalPropertiesObject
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]

View File

@@ -1,9 +0,0 @@
# OpenApiPetstore.AdditionalPropertiesString
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]

View File

@@ -1,24 +0,0 @@
# OpenApiPetstore.BigCat
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**kind** | **String** | | [optional]
## Enum: KindEnum
* `lions` (value: `"lions"`)
* `tigers` (value: `"tigers"`)
* `leopards` (value: `"leopards"`)
* `jaguars` (value: `"jaguars"`)

View File

@@ -1,24 +0,0 @@
# OpenApiPetstore.BigCatAllOf
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**kind** | **String** | | [optional]
## Enum: KindEnum
* `lions` (value: `"lions"`)
* `tigers` (value: `"tigers"`)
* `leopards` (value: `"leopards"`)
* `jaguars` (value: `"jaguars"`)

View File

@@ -1,10 +0,0 @@
# OpenApiPetstore.InlineObject
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Updated name of the pet | [optional]
**status** | **String** | Updated status of the pet | [optional]

View File

@@ -1,10 +0,0 @@
# OpenApiPetstore.InlineObject1
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**additionalMetadata** | **String** | Additional data to pass to server | [optional]
**file** | **File** | file to upload | [optional]

View File

@@ -1,34 +0,0 @@
# OpenApiPetstore.InlineObject2
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**enumFormStringArray** | **[String]** | Form parameter enum test (string array) | [optional]
**enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to '-efg']
## Enum: [EnumFormStringArrayEnum]
* `GREATER_THAN` (value: `">"`)
* `DOLLAR` (value: `"$"`)
## Enum: EnumFormStringEnum
* `_abc` (value: `"_abc"`)
* `-efg` (value: `"-efg"`)
* `(xyz)` (value: `"(xyz)"`)

View File

@@ -1,22 +0,0 @@
# OpenApiPetstore.InlineObject3
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integer** | **Number** | None | [optional]
**int32** | **Number** | None | [optional]
**int64** | **Number** | None | [optional]
**_number** | **Number** | None |
**_float** | **Number** | None | [optional]
**_double** | **Number** | None |
**_string** | **String** | None | [optional]
**patternWithoutDelimiter** | **String** | None |
**_byte** | **Blob** | None |
**binary** | **File** | None | [optional]
**_date** | **Date** | None | [optional]
**dateTime** | **Date** | None | [optional]
**password** | **String** | None | [optional]
**callback** | **String** | None | [optional]

View File

@@ -1,10 +0,0 @@
# OpenApiPetstore.InlineObject4
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**param** | **String** | field1 |
**param2** | **String** | field2 |

View File

@@ -1,10 +0,0 @@
# OpenApiPetstore.InlineObject5
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**additionalMetadata** | **String** | Additional data to pass to server | [optional]
**requiredFile** | **File** | file to upload |

View File

@@ -1,9 +0,0 @@
# OpenApiPetstore.InlineResponseDefault
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**string** | [**Foo**](Foo.md) | | [optional]

View File

@@ -1,9 +0,0 @@
# OpenApiPetstore.ModelReturn
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_return** | **Number** | | [optional]

View File

@@ -1,10 +0,0 @@
# OpenApiPetstore.SingleRefType
## Enum
* `admin` (value: `"admin"`)
* `user` (value: `"user"`)

View File

@@ -1,13 +0,0 @@
# OpenApiPetstore.TypeHolderDefault
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | | [default to 'what']
**numberItem** | **Number** | |
**integerItem** | **Number** | |
**boolItem** | **Boolean** | | [default to true]
**arrayItem** | **[Number]** | |

View File

@@ -1,14 +0,0 @@
# OpenApiPetstore.TypeHolderExample
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | **Number** | |
**floatItem** | **Number** | |
**integerItem** | **Number** | |
**boolItem** | **Boolean** | |
**arrayItem** | **[Number]** | |

View File

@@ -1,37 +0,0 @@
# OpenApiPetstore.XmlItem
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**attributeString** | **String** | | [optional]
**attributeNumber** | **Number** | | [optional]
**attributeInteger** | **Number** | | [optional]
**attributeBoolean** | **Boolean** | | [optional]
**wrappedArray** | **[Number]** | | [optional]
**nameString** | **String** | | [optional]
**nameNumber** | **Number** | | [optional]
**nameInteger** | **Number** | | [optional]
**nameBoolean** | **Boolean** | | [optional]
**nameArray** | **[Number]** | | [optional]
**nameWrappedArray** | **[Number]** | | [optional]
**prefixString** | **String** | | [optional]
**prefixNumber** | **Number** | | [optional]
**prefixInteger** | **Number** | | [optional]
**prefixBoolean** | **Boolean** | | [optional]
**prefixArray** | **[Number]** | | [optional]
**prefixWrappedArray** | **[Number]** | | [optional]
**namespaceString** | **String** | | [optional]
**namespaceNumber** | **Number** | | [optional]
**namespaceInteger** | **Number** | | [optional]
**namespaceBoolean** | **Boolean** | | [optional]
**namespaceArray** | **[Number]** | | [optional]
**namespaceWrappedArray** | **[Number]** | | [optional]
**prefixNsString** | **String** | | [optional]
**prefixNsNumber** | **Number** | | [optional]
**prefixNsInteger** | **Number** | | [optional]
**prefixNsBoolean** | **Boolean** | | [optional]
**prefixNsArray** | **[Number]** | | [optional]
**prefixNsWrappedArray** | **[Number]** | | [optional]