* Using the first serializable 'consumes' mediaType
Using all deserializable 'produces' mediaTypes
Matching json vendor types as json
* updating the generated samples
* add error body and type to api exception class
* add option to specify error object
* add option, update api doc with better error handling
* update samples
* update doc
* Adds request body of any type
* Fixes param dataType, paramName, and baseName
* Uses updateRequestBodyForPrimitiveType as the else case for anyType request bodies like the code used to do
* Samples updated
* Samples regenerated
* [swift5][client] allow request cancellation and authentication flow to work together
* [swift5][client] allow request cancellation and authentication flow to work together
* [swift5][client] rename OpenAPIRequestCancellable to RequestTask
* [swift5][client] rename OpenAPIRequestCancellable to RequestTask
* 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