* Test Cases for more than two oneOf-Options (both passing, but important to narrow down observed bug)
* fix language-specific tests broken by adding a third fruit to oneOf test
* create reproducer unit test for java client codegen
* fix typo in test yaml
* fix ModelUtils.getParentName returning name of first element in composed schema instead of null when there are multiple elements and it is not clear which one should be parent
* rename test yaml and added tests for clarity
* update samples
* update samples again
The code for setting the form body parameters were wrong,
e.g. the key value pair (id, 12345) would be encoded as
id=%28id%2C12345%29
This commit adds a fix to the base client to correctly setting formBody values the previous pair will now be encoded as
id=12345
* typescript-fetch: Fix model date crash
Fix a runtime crash converting to json when a date or datetime is both nullable
AND required. There are 4 cases to account for:
| required | nullable | values |
|----------|----------|--------|
| f | f | string OR undefined |
| f | t | string OR null OR undefined |
| t | f | string |
| t | t | string OR null |
And importantly when required and nullable code that would crash on null was
being generated. additionally when required is false and nullable is true we
still want to allow consumers to be able to pass in `undefined` OR `null` and
pass that value to the server. Some servers treat null and undefined differently
for some operations so having that ability is pretty reasonable.
fix: https://github.com/OpenAPITools/openapi-generator/issues/21820
* Update typescript-fetch samples
./bin/generate-samples.sh ./bin/configs/*.yaml || exit
* [OCaml] Fix inconsistent oneOf primitive sample name
* [OCaml] Fix encoding/decoding for free-form required fields
* [OCaml] Change field comment to Odoc, move it after the field
As per Odoc documentation, record field documentation should be *after* the
field, not before.
See https://ocaml.github.io/odoc/odoc/odoc_for_authors.html#special_comments
type `my_record`
* [OCaml] Cleanup non-generated files for ocaml sample
* Add OCaml fake-petstore to test corner cases
* Prefix List functions with Stdlib as the fake petstore generates a List module
* Handle decimal and any types
* Indent to_json.mustache for easier maintenance
* Indent api-impl.mustache a bit more for readability before fix
* Fix: do not call `to_json` for free forms and byte arrays
Fixes https://github.com/OpenAPITools/openapi-generator/issues/21312
* Fix compilation for binary types
The implementation may not be correct, but at least it compiles. To be checked
if someday someone actually uses it/complains.
* Indent to_string.mustache
* Add support for exploded form-style object query params
Fixes https://github.com/OpenAPITools/openapi-generator/issues/21307
* Add ocaml-fake-petstore to CI
* Fix free-form body params
* Cohttp_lwt.Response is deprecated, use Cohttp.Response instead
* Safe Java code cleanup
* Split into model-record.mustache
* Add some support for oneOf/anyOf
* Re-generate all OCaml samples
* Fix: correctly mark non-required maps with default empty list
* Fix: Correctly encode/decode maps
* Refresh documentation
* Refresh after merging master
* fix(Spring Boot): adds validation to body params of forms requests
* fix(Spring Boot): adds test for validation of body params of forms requests
* fix(Spring Boot): adds samples
* use built in
* upgrade types from pinned fetch
* samples
* csharp samples
* merge master and samples
---------
Co-authored-by: David Gamero <davidgamero@microsoft.com>
* [kotlin-client] Add support for integer enums with custom serializer for kotlinx
* [kotlin-client] Fix @SerialName annotation being used on non-string enums
* Format samples
* remove blank line
* add tests for kotlin client with integer enum
* add folders
---------
Co-authored-by: CHervaudBetclic <c.hervaud@betclicgroup.com>
* Exclude the discriminator field from getting a nullable_var_annotations
* Update samples
* Manually add annotations since the remote pipeline insists that they should be there
* Add description for why the discriminator does not have a nullability-annotation
* Update samples
* #21582 [BUG][dart-dio] Bug generating inline enums with common names
* #21582 [BUG][dart-dio] Bug generating inline enums with common names added petstore test
* #21582 [BUG][dart-dio] Bug generating inline enums with common names added generated samples to commit.
* #21582 [BUG][dart-dio] Bug generating inline enums with common names removed bug test files that were duplicates
* #21582 [BUG][dart-dio] Bug generating inline enums with common names. Added generated files that were missed.
* #21582 [BUG][dart-dio] Bug generating inline enums with common names. Added generated files that were missed.
* #21582 [BUG][dart-dio] Bug generating inline enums with common names. Added generated files that where updated as a result of changes in master.
* fix(typescript): add Date instance check before date formatting
* chore(typescript): generate samples
* fix: resolve type errors in ObjectSerializer Date formatting
* chore: update samples
* chore: ensure-up-to-date