* fix!: accept should not force application JSON
Generated code offen provides range of accept methods.
This method improperly takes JSON as preferred
Example:
localVarHTTPHeaderAccepts := []string{"application/zip", "application/json"}
* chore: generated changes
* add handling of array of oneOfs
* handle res model-type lowercase name +shorten code
* remove unnecessary vendor-extension model enum
* handle openapi lowercase schema name for array res
* change xs:anytype to string for file responses
* update checkstyles
* remove not needed imports again
* update samples
* upper/lowercase use local getdefault
* update samples again
* Updated template so that generated code now renders docstrings and function parameters nicely in IDE.
Endpoints are still accessible in generated code, mainly to satisfy some test cases.
* fixed manual tests
* Bump jimschubert/query-tag-action from 1 to 2
Bumps [jimschubert/query-tag-action](https://github.com/jimschubert/query-tag-action) from 1 to 2.
- [Release notes](https://github.com/jimschubert/query-tag-action/releases)
- [Commits](https://github.com/jimschubert/query-tag-action/compare/v1...v2)
Signed-off-by: dependabot[bot] <support@github.com>
* Updated Dart2 template to fix linting errors when using recommended rules.
* Updated Petstore code.
* Revert to having no EOF marker at end of few files.
* Fix a call on null value.
* Updated Petstore code.
* Add more checks for nulls.
* Updated Petstore code.
* Updated Petstore code.
* Revert back decoding an enum value.
* Revert back decoding an enum value.
* Updated Petstore code.
* Revert to older version of _convertParametersForCollectionFormat method.
* Updated Petstore code.
* Updated template and Petstore files.
* Adjust doc for analysis_options file.
* Updated Petstore sources.
* Shorten command to replace path parameters.
* Updated Petstore code.
* Add a space for readability.
* Adjust template per feedback.
* Remove unneeded break statements.
* Updated Petstore code.
* Keep a new line character when replacing parameter names (like before).
* Remove string interpolation.
* Updated Petstore code.
* Remove commented code.
* Regenerate Petstore code.
* Regenerated Petstore code.
* Use another parameter name to stop variable shadowing.
* Regenerated Petstore code.
* Put description adjacent to the class.
* Add another global ignore for all files: constant_identifier_names
* Use const for contentTypes and authNames.
* Regenerate Petstore code.
* Use shorter code to check for an empty array.
* Regenerate Petstore code.
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
If an item in a go array is nullable, we want to represent it as a pointer,
otherwise it will be deserialized with a default value and it will be
impossible to differentiate it from null.
* adding a test for issues 10083
* commiting the generated files
* fix for the setattr issue
* commit generated files
Co-authored-by: Aanisha Mishra <aanisha.mishra05@gmail.com>
* fixes a breakage while deserializing the read-only attributes
* updating generated samples
* taking care of the PR comments
* updating samples
* protect against cases where _spec_property_naming may not be present
* updating samples
* adding tests for this issue
* other generated files
* taking care of the comments
* updating the generated samples
Co-authored-by: Aanisha Mishra <aanisha.mishra05@gmail.com>
* handle nullable objects
* reverted java code
* Rewrote type generation to be recursive
* checking for isRequired only makes sense in the model class
* remove comments
* remove whitespaces
* regen samples
* use const once https://dart.dev/guides/language/effective-dart/usage#dont-use-const-redundantly
* remove const from mustache
* added space between comma and type
* fixed formatting
* remove commas
* regen samples
* bad whitespaces
* respect the nullable flag for all parameters (except path params where this is not allowed)
* generate default values for header and query parameters that are not collections
* we can not handle default values for collection with built_value atm. (not const)
* we can not handle default values for form/body parameters atm. as those can be enums which we can not construct easily
* Include request body on DELETE call
This change updates the generated `ApiClient` to include the request body on DELETE calls. [Per the RFC on page 2][1], DELETE calls are allowed to have a request body, even though the behavior may be undefined. I've not come across many APIs that use this behavior but there are a few, in particular the [Ory Kratos API][2] does so, not forwarding the body prevents such an API from being used. An API spec that does not define a request body should continue to function as expected.
[1] https://datatracker.ietf.org/doc/html/rfc7231#section-4.3.5
[2] https://www.ory.sh/kratos/docs/reference/api/#operation/submitSelfServiceLogoutFlowWithoutBrowser
* Samples generated with dart2 template change
* fix parameter with list of `MultipartFile` being generated as single `MultipartFile`
* generate serializer factories for all container params, not only body params
* fix compilation errors when `skipFormModel=false`
* [go] More idiomatic godoc comments
* [go] Mark deprecated fields and functions
* [go] Minor mustache readability/consistency fixes
* [go] Mark deprecated operation parameters
* [go] Deprecate a petstore component property for testing
* [go] Apply deprecated godoc in Go servers also