* copy from go-server and add go-gin-server generator
* change the templates for the gin
* fix warnings of the golint tool
* fix the path of script
* add samples
* delete unnecessary comments (#1048)
* make the help message more appropriate (#1048)
* fix the link address format (#1048)
* minor improvement
* If required and readonly, a field should be optional. This is to allow people to get and easily put back.
* Use list instead of array, use String instead of kotlin.String etc
* Update samples
* code review: fix annotation formatting
* code review: revert change to use listOf
* [Ada] Operation security scopes are ignored when generating the server (#1043)
- Update fromOperation() to keep the operation required scopes for each auth
method and store that information in the x-scopes vendor extensions attribute
- Update postProcessOperationsWithModels() to process the operation required
scopes and build a list of authMethods which only contain the required scopes
for the operation and store these authMethods in the x-auth-scopes attribute.
- Update postProcessAuthMethod() to handle the logic of filtering and building
the operation authMethod (new instances are created because we must not
modify the global authMethod definitions)
- Update the Ada server templates to use the x-auth-scopes instead of authMethods
Add a URL prefix parameter for the Ada server instantiation
* Fix the Ada server template to use the x-auth-scopes for operation scopes
* Add support for access token retry in okhttp-gson lib
* Update expected number of generated files in test
* Update samples
* Update security samples
* Fix default user-agent and update samples
* allVars is duplicating child preoperties when models are inherited. Filter out these duplicates in the KotlinSpringServerCodegen
* isInherited property was not being populated in the CodegenModel, re-parse the models in the KotlinSpringServerCodegen class and populate the property here
* Add template support for Kotlin models which require inheritance from a base class to support oneOf declarations in the api yaml
* Change optional for parameters to use Kotlins nullable
* Update petstore api with Optional -> Nullable
* feature: add generator for typescript/axios
* feature: add sample scripts and sample code
* fix: set request body in data property
* feature: add samples and tests for typescript axios client
* test: add tests for typescript axios client
* fix template to add @Valid to POJO fields regarding nest, in java-jersey
* regenerate with for scr in `ls ./bin/*jersey*.sh`; do sh $scr; done
* re-generate with ./bin/openapi3/jaxrs-jersey-petstore.sh
* update api template for jersey1
* re-generate samples
* re-generate samples
* Support Gradle 4.10
Gradle 4.10 is bundled with Kotlin 1.60 and Kotlin DSL 1.0-rc1. The new
Kotlin DSL isn't binary compatible with the `tasks` registration used in
this plugin.
Updating to Kotlin DSL 1.0-rc1 with no other changes would require users
to update to Gradle 4.10.
As a workaround, I've modified the tasks registration being done in
OpenApiGeneratorPlugin.kt, so rather than using the Kotlin DSL's invoke,
it creates tasks manually against the TasksContainer. This works locally
with Gradle 4.7+ for all scenarios in the sample (samples/local-spec).
There may be edge cases that I'm unaware of, and we may want to consider
defining the minimum supported Gradle version of 4.10 in the next major
version of openapi-generator-gradle-plugin if we experience those cases.
* Uncomment snapshots repo (commented it during local testing)
* update pom.xml for exec gradle plugin
* Update the .net core sdk to v2.1 and update the asp.net packages used.
* Upgrade the SwashBuckle Asp.Net Core package to v3.0.0.
* Update the AppSettings json file and add a file used in development.
Also, remove the web.config file.
* Update the program template to use the web host builder class.
* Update the startup class to use the Asp.Net 2.1 paradigms.
* Update the launch settings json file.
* Update the controller template to derive from the ControllerBase class as aposed to Controller.
* Add the SwashBuckle annotations package.
* Add the SwashBuckle.AspNetCore.Annotations namespace to the controller template.
* Update the Startup template to add comments to the Configuration property and an env parameter to the Configure method.
* Update the startup class so we don't need to inject the hosting environment.
* Update the program class to have hte recommended CreateWebHostBuilder method from asp.net core 2.1.
* Update the asp.net core pet store sample server.
* add back aspnetcore 2.0 template via option
* remove web.config for aspnet core 2.1
Support basic query handling
Add helpers for primitive de-serialization
Remove warnings due to unneeded commas
Deserialize basic types in queries
Add dependencies chain for external libraries
Fixes wrong parameter passed to API
This fixes an issue that makes the swift 4 api client fail to compile when using enums with a default value.
The fix changes the toDefaultValue method to check if the property is of enum type, and then returns a properly formatted value.
Looking into the code, I wonder why toEnumDefaultValue is not being used here, which seems to be the case for the java implementation.
* fix circular import issue in python flask
This is very similar change to 3678eaff87dd95348470c
All it intends to do is fix the problem of cirular imports (which was
already fixed for python) in the python flask server.
* removal of type hints in quotes