OAS allows you to set optional/required
properties in models. While serializing a model, optional properties will be omitted if the value of property is not set (i.e. initialized with null) and, required properties will be serialized in any case. This is a case of factoring schema in oneOf/anyOf
. Now with this support, you can define properties with the same names but with different optional/required constraints in request/response
of an endpoint.
22 posts tagged with "Java"
View All TagsHandling Object Type as Dictionary for oneOf and anyOf in Java SDKs
OpenAPI Specification allows you to add an object
type in oneOf
and anyOf
in Java SDKs. Defining an object
type means any key/value pair is accepted. Object
type in Java means it can refer to any instance, as Object
is the root class. Therefore, this change enforces that for any object
type case falling under oneOf
and anyOf
, the Java SDK will treat it as Map
.
Adding Support for Nullable Types in oneOf and anyOf in Java SDKs
OAS allows marking properties as nullable, but previously this flag was not being respected in the Java SDK where oneOf/anyOf
was being used. Now with this release, the Java SDK fully respects the nullable attribute during serialization & deserialization for oneOf/anyOf
properties.
Adding Support for Enums in oneOf and anyOf in Java SDKs
Java SDKs now support enum types defined as oneOf/anyOf types. You can define as many distinct enum types as required with this support.
Fix for Vulnerability in Jackson Databind 2.9.9
We have updated the jackson-databind
library in our Java SDKs due to a vulnerability reported recently. Please generate a new Java SDK from APIMatic to get the fix.
Fix for Jackson Data-bind Vulnerability
We've updated the Jackson Data-bind library in our Java SDKs due to a vulnerability reported recently. Please generate a new Java SDK from APIMatic to get the fix.
Improvements in Blocking API Calls in Java
We've made several improvements to our Java SDK, resulting in considerable resource savings and speed-up, in case of blocking API calls. To benefit from these improvements, please generate your SDKs again.
Following Redirects in SDKs
We've fixed an issue in SDKs where HTTP redirections were not being handled properly. Please generate new SDKs to receive the fixes.
Logging in Java
We've added logging to our Java SDKs. Logging-enabled SDKs will log important events in the API lifecycle for troubleshooting or debugging later.
Token Refresh on Expiry in OAuth 2 Client Credential Flow
We've updated our SDKs that use OAuth 2 Client Credential Flow to enable automatic re-authorization of the client when the OAuth token is expired.