public class BinaryCoercer extends Object implements IJsonFormatTypeCoercer
"binary"
and "byte"
formats.
Maps them to OctetEncoding
and Base64Encoding
respectively.
These formats are defined in OpenAPI Specification
_coercionProviders, _instances
Constructor and Description |
---|
BinaryCoercer() |
Modifier and Type | Method and Description |
---|---|
Object |
coerce(Object value,
Type type) |
Map<String,Class<?>> |
getFormats() |
Object |
toBindingValue(Object value) |
clone, emptyArray, equals, finalize, getClass, hashCode, jailbreak, notify, notifyAll, toString, wait, wait, wait
get
public Map<String,Class<?>> getFormats()
getFormats
in interface IJsonFormatTypeCoercer
"date-time"->LocalDateTime.class
to be
referenced in Json Schema "format"
types.public Object coerce(Object value, Type type)
coerce
in interface ICoercionProvider
public Object toBindingValue(Object value)
toBindingValue
in interface ICoercionProvider
Copyright © 2024. All rights reserved.