* Add cycle detection (#7532)
* Review feedback
* Including ContextAwareNodes to detect cycles more accurately.
* Add test
* Add forest to test.
* No longer need ContextAwareNode
* Review feedback
* Update samples
* Content mediatype is hardcoded in api.mustache #11511
* Generate Samples
* OAS3 incorrect data type when providing a default value #11367
* Generate Samples
* Fix JsonTypeName annotation handling in Java and JavaSpring
* Generate Samples
* getIsClassnameSanitized: use null safe equals
The currently generated code will throw a `ClassCastException` if `type` is `Object`. I'm not quite sure why `isAssignableFrom` is used here but I tried to keep the change minimal - in my understanding, the result would be the same if the line was
```
if(Types.getRawType(type).equals(ApiResponse.class)) {
```
because the `ApiResponse` only extends `Object` and implements no interfaces. Maybe it was meant to be `ApiResponse.class.isAssignableFrom(Types.getRawType(type))`? This would also permit subclasses of `ApiResponse`, but then it would be more complicated to determine the actual type parameter (because `type` itself may not be parameterized) and to create the object to return (because it would have to be an instance of the subclass).
* Adds bases for int32, int64, float32, and float64
* Samples updated
* Removes print statements
* When creating properties and items do not call _from_openapi_data or model __new__
* Update speed improvement
* cast_to_allowed_types speeed improvements
* _get_new_instance_without_conversion order swap for speed
* Fixes test errors
* Small fixes about path_to_schemas
* Adds component with composition in property example
* Adds endpoint parameter examples
* Adds request body examples
* Adds inpline composition example in response body
* Fixes UNKNOWNBASETYPE import bug
* Updates allof inline schemas to be type object with minProperties
* Removes newline
* Adds test_ObjectWithInlineCompositionProperty
* Updates inline schema to be type string, adds partial test_inline_composition
* Fixes accept_content_types input value
* Adds test_ObjectWithInlineCompositionProperty, adds test_inline_composition and starts deserialization of multipart
* Fixes test_inline_composition, adds simple multipat/form-data deserialization
* feat(typescript-rxjs): add support for rxjs 7.2.0, use type imports
* feat(typescript-rxjs): regenerate samples
* feat(typescript-rxjs): use generic T instead of any in BaseAPI
* feat(typescript-rxjs): regenerate samples
* add stringEnums option
* update templates
* add export
* update samples
* update document
* improve readability
* remove unnecessary code
* add config file for sample
* add sample
* update sample
* remove enum variable form modelObjetEnum template because this variable is not used in modelStringEnum template.
* change the indentation to be the same as modelGeneric template
* Add nillable data types to models
Only REQUIRED and NOT NULLABLE variables can NOT have type Nil
All OPTIONAL and NULLABLE-REQUIRED variables have type Nil
Only NULLABLE-REQUIRED variables should emit keys with null values when they are serialized, json example: property name : String? = nil; the json representation for this property is {"name": null}
For all OPTIONAL variables having Nil values, their variable keys would be skipped during serialization. The json representation for OPTIONAL property name : String? = nil; would be: {}
* Fix failed tests in samples/client/petstore/crystal/spec/api/pet_api_spec.cr
* Remove isNullable from model template
* No need to check nillability of required property
For any required property, assigning nil value to it will result in compilation error
The datatype simply can not hold value nil, so there's no need to check it
* Place required vars first in initializor
* Refresh generated sample code for crystal client
* Required properties are not nillable
* Fix compilation error of undefined method equal?
Crystal lang doesn't have method equal?
We should use method same? instead of ruby's equal? method
Reference: https://crystal-lang.org/api/master/Reference.html#same?(other:Reference):Bool-instance-method
* Add tests for add_pet api endpoint with only required parameters
Setting Pet optional properties to nil values is allowed by add_pet api endpoint
* Add helper method to test compilation errors
* Add tests to Pet model
Test model initializations
Test compilation error when model is initialized without required properties
* Test required properties in json deserialization for Pet model
* Added templates for Kotlin JAX-RS server
* Fixed Kotlin Server JAX-RS template directory
* Added support for Kotlin Server JAX-RS library
* Added support using coroutines with Kotlin server JAX-RS library
* Added sample for Kotlin server JAX-RS library
* Added support for returnResponse option into Kotlin server JAX-RS library
* Fixed issue with optional parameters in Kotlin JAX-RS spec
* Fixed oneOf issue in Kotlin jaxrs-spec generator
* Added better documentation to Kotlin Server JAX-RS options
* Updated kotlin-server.md
* Updated kotlin-server jaxrs-spec samples
* Fixed issue with Kotlin JAX-RS spec and reserved names
* Regenerated samples
* add custom agent support
* samples
* more samples
* merge master files
* only enable custom agent on nodejs not browser
* samples again
* samples
* samples once more
* added generichost library
* added templates
* added an event, improved docs, added logging
* adding event args file
* fixed hard coded package name
* added an AddTokens overload for a single token
* changed api clients to singletons to support the event registration
* build samples
* log exceptions while executing api responded event
* nrt bug fixes, dangling comma fix
* resolving comments
* removed debugging lines
* refactored token provider
* rate limit provider now default
* updated readme, added ConfigureAwait(false)
* DI fixes
* removed a hard coded project name
* fixed nrt bugs
* improved NRT and .net 3.1 support
* renamed projectName to apiName, added cli option
* trying to avoid conflict
* set GenerateAssemlbyInfo to true
* created docs/scripts folder
* moved ApiTestsBase.cs to not get overwritten
* test fixes and improvements
* fixed licenseId bug, updated readme
* build samples
* export docs
* removed new language features
* added support for .net standard 2.0
* added git_push.ps1
* fixed bug in git_push.sh due to the new directory, prompting user for commit message
* moved documentation folders
* fixed bug when apiKey in query
* bug fix
* fix base class and back-ticks
* back-ticks in key word fix
* back-ticks fix in kotlin keywords
* samples
* remove EOL
Co-authored-by: ags039 <ags039@motorolasolutions.com>
* added support for independent test-folder
* generate updated docs
* generate updated docs
* generate updated docs
* trigger a new CI builds
Co-authored-by: William Cheng <wing328hk@gmail.com>
* Add micronaut server implementation
* Add micronaut server tests and imporovements
* Generate samples, docs and verify that tests pass
* Update micronaut docs and samples after merging with master
* Update micronaut dev server samples
* Add micronuat server docs
* Update micronaut version
* Minor changes to micronaut server and client
* Fix documentation generation in samples
Co-authored-by: Andriy Dmytruk <andriy.dmytruk@andriy.dmytruk.ca.oracle.com>
* Installs python3.9 in node3
* Moves python clients into separate node so they can use a docker image
* Installs java and maven into docker
* Switches off some python tests
* Support Helidon MP server using Helidon 2.4.1
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
* Add unrelated changed sample file(s) after rebase
* Updated generated samples file after rebasing again
* Remove incorrectly 'git add'ed generated file
* Revert "Revert "Has generators set default template engine (#11245)" (#11316)"
This reverts commit 57987424a4eaa22d73337388489cd86d7f42a023.
* Only loads in the default template engine if the config file contains the generatorName
* Only sets templatingEngineName using condif default in one place
* Adds config files that lack generatorName
* Revert "Adds config files that lack generatorName"
This reverts commit 7dafc93c0f02c037d9be5d2c0a3ee7377c8b479d.
* Adds generator default templating engine to the generator metadata
* add default auth
* private
* default when optional params and fix types
* build samples
* remove extra space
* re-add space before default empty
* switch to default authentication method support in config
* generated samples
* null check chaining
* generate samples
* remove extra spaces
* regen samples
* formatting fixes
* more samples
* remove from abstract methods
* samples
* add default to inversify as well
* samples again
* exclude inversify
* samples once more
* samples