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

1.7 KiB

XmlItem

Properties

Name Type Description Notes
attributeString String [optional]
attributeNumber BigDecimal [optional]
attributeInteger Integer [optional]
attributeBoolean Boolean [optional]
wrappedArray List<Integer> [optional]
nameString String [optional]
nameNumber BigDecimal [optional]
nameInteger Integer [optional]
nameBoolean Boolean [optional]
nameArray List<Integer> [optional]
nameWrappedArray List<Integer> [optional]
prefixString String [optional]
prefixNumber BigDecimal [optional]
prefixInteger Integer [optional]
prefixBoolean Boolean [optional]
prefixArray List<Integer> [optional]
prefixWrappedArray List<Integer> [optional]
namespaceString String [optional]
namespaceNumber BigDecimal [optional]
namespaceInteger Integer [optional]
namespaceBoolean Boolean [optional]
namespaceArray List<Integer> [optional]
namespaceWrappedArray List<Integer> [optional]
prefixNsString String [optional]
prefixNsNumber BigDecimal [optional]
prefixNsInteger Integer [optional]
prefixNsBoolean Boolean [optional]
prefixNsArray List<Integer> [optional]
prefixNsWrappedArray List<Integer> [optional]