William Cheng b061bd2146
[Java][Okhttp] Add oneOf support (#10875)
* 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.
2021-11-30 15:33:42 +08:00

797 B

AdditionalPropertiesClass

Properties

Name Type Description Notes
mapProperty Map<String, String> [optional]
mapOfMapProperty Map<String, Map<String, String>> [optional]
anytype1 Object [optional]
mapWithUndeclaredPropertiesAnytype1 Object [optional]
mapWithUndeclaredPropertiesAnytype2 Object [optional]
mapWithUndeclaredPropertiesAnytype3 Map<String, Object> [optional]
emptyMap Object an object with no declared properties and no undeclared properties, hence it's an empty map. [optional]
mapWithUndeclaredPropertiesString Map<String, String> [optional]