Class Extensions
java.lang.Object
io.github.torand.openapi2java.collectors.Extensions
Handles custom OpenAPI format extensions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDescribing why something is deprecated, and what to use instead.static final StringFully qualified classname of a JSON serializer class for the schema.static final StringSubdirectory to place the generated DTO model class.static final StringIf `true` the type of the schema/property can be `null`.static final StringConfig key used for getting MP Rest Client config.static final StringMap of custom client header names and their values.static final StringFully qualified classname of an MP Rest Client header factory.static final StringArray of fully qualified classnames of MP Rest Client providers.static final StringFully qualified classname of an annotation class to validate the schema. -
Method Summary
Modifier and TypeMethodDescriptionstatic Extensionsextensions(Map<String, Object> extensionsByName) Returns anExtensionsobject processing the specified OpenAPI extension map.getBoolean(String name) Gets value of a boolean extension property.Gets value of a map extension property.Gets value of a string extension property.getStringArray(String name) Gets value of a string array extension property.
-
Field Details
-
EXT_RESTCLIENT_CONFIGKEY
Config key used for getting MP Rest Client config.- See Also:
-
EXT_RESTCLIENT_HEADERS
Map of custom client header names and their values.- See Also:
-
EXT_RESTCLIENT_HEADERSFACTORY
Fully qualified classname of an MP Rest Client header factory.- See Also:
-
EXT_RESTCLIENT_PROVIDERS
Array of fully qualified classnames of MP Rest Client providers.- See Also:
-
EXT_JSON_SERIALIZER
Fully qualified classname of a JSON serializer class for the schema.- See Also:
-
EXT_VALIDATION_CONSTRAINT
Fully qualified classname of an annotation class to validate the schema.- See Also:
-
EXT_NULLABLE
If `true` the type of the schema/property can be `null`.- See Also:
-
EXT_MODEL_SUBDIR
Subdirectory to place the generated DTO model class.- See Also:
-
EXT_DEPRECATION_MESSAGE
Describing why something is deprecated, and what to use instead.- See Also:
-
-
Method Details
-
extensions
Returns anExtensionsobject processing the specified OpenAPI extension map.- Parameters:
extensionsByName- the OpenAPI extensions.- Returns:
- the
Extensionsobject.
-
getString
Gets value of a string extension property.- Parameters:
name- the extension property name.- Returns:
- the extension property string value, if found; else empty.
-
getStringArray
Gets value of a string array extension property.- Parameters:
name- the extension property name.- Returns:
- the extension property value, if found; else empty.
-
getBoolean
Gets value of a boolean extension property.- Parameters:
name- the extension property name.- Returns:
- the extension property value, if found; else empty.
-
getMap
Gets value of a map extension property.- Parameters:
name- the extension property name.- Returns:
- the extension property value, if found; else empty.
-