* typescript-angular: taggedUnions=true: Preserve import to the parent model from the child
if the child property has a direct reference to it
* Fix javadoc
According to RFC 7235 (HTTP/1.1: Authentication), schema tokens are
handled case-insensitive (Section 2.1: Challenge and Response). This
change compares the known token values basic, bearer, and signature
case-insensitive.
- https://datatracker.ietf.org/doc/html/rfc7235#section-2.1
* add swift5 option for generating frozen enums
* use case unknownDefault to avoid conflicts
* update comments to reflect unknownDefault case
* set default values for unknown case to avoid conflict
* dont need vendor extensions to detect enum raw data type
* move CaseIterableDefaultsLast into models mustache template
* comment catch all case and add support for other types
* add frozen enums to ci pipeline
* remove extraneous edit to extensions template
* remove left over protocols files
* small comment and case adjustments
* New branch
* Added test class for functions server
* Logger should not be static
* Added csharp-netcore-functions to docs/generators
* Added csharp-netcore-functions to generators.md
* Removes sln and csproj
* add custom gson deserializer
* add check for additional fields, required fields
* add tests for custom deserializer
* add custom adapter
* add custom adapter
* register type adapter factory
* comment out custom deserializer and use adapter instead
* add okhttp-gson-nextgen
* add new files
* restore okhttp-gson
* switch to adapter
* remove custom de/serializer
* add comment
* update tests
* test nextgen in ci
* update doc
* use full model name in JSON.java
* undo changes
* add oneof discriminator support
* fix anyOf
* remove mappings
* add more tests
* fix oneof deserialization, add more tests
* add error body and type to api exception class
* JSON to use instance variables/methods
* Revert "add error body and type to api exception class"
This reverts commit 07f34e2c450ad9f808b728173018b1e4d8fed458.
* Adds CodegenMediaType and CodegenEncoding
* Adds partial new code to set Parameter content data
* Adds content to CodegenParameter
* Sets content for request bodies
* Adds testParameterContent
* Adds testRequestBodyContent
The [docs for ofInputStream](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.BodySubscribers.html#ofInputStream()) say:
> To ensure that all resources associated with the corresponding exchange are properly released the caller must ensure to either read all lines until the stream is exhausted, or call BaseStream.close() if it is unable or unwilling to do so. Calling close before exhausting the stream may cause the underlying HTTP connection to be closed and prevent it from being reused for subsequent operations.
When ObjectMapper.readValue is called with an InputStream it implicitly closes it, but when the library is not expecting a return type it's not passing the InputStream to Jackson, so the stream needs to be manually drained and closed as per the docs
Failure to do this leads to a leak of HttpClient socket handles, and ultimately the exception `java.net.BindException: Cannot assign requested address` when trying to make API calls
* Add Operation Servers to {operation}Call method
* add getter/setter methods
Add methods for hostIndex and customBaseUrl
* Fix return types for getters
* Add custom baseUrl logic
if you dont specifically declare a custom base url using the set method then it uses the 1st server in the operation host index array
if no custom url is set and the operation base path array is empty however, the call throws an exception
* Update server selection logic
First checks to see if a custom url is provided
If not, checks to see if operation level server is defined and uses the supplied host index (default 0)
If neither is supplied, uses the ApiClient default base path
* Update samples and docs
* Fixed http errors deserialization
I've found this bug in @kubernetes/client-node npm package.
By the way, Here is the issue https://github.com/OpenAPITools/openapi-generator/issues/2924#
* Update typescript-node samples with a fix of error handling
* Update samples version
Co-authored-by: Bogdan Onischenko <bogdan.onischenko@nixsolutions.com>
* [Protobuf-Schema] Add numbered field number list switch
* [Protobuf-Schema] Add numbered field number list switch
* [Protobuf-Schema] Added switch
* [Docs][Protobuf-Schema] Generated docs
Co-authored-by: Tomáš Čermák <cermak@merica.cz>
* Instead of limiting a request to a single file when
performing an upload, use a slice of files so an
arbitrary number of files can be used in the form.
* Remove commented out line of code
* Update examples for multi-form file fix for multiple files
* Convert spaces to tabs for indentation
* Updated examples to have tabs instead of spaces
* Add an example of a multipart/form-data OA3 schema
that contains two files to be uploaded