public interface IJsonFormatTypeResolver extends ICoercionProvider
"format" to a Java type. For instance,
the "date-time" format maps to LocalDateTime
See DefaultFormatResolver to see how "date-time" and other formats are mapped to a set of Java types.
Register one or more of your IJsonFormatTypeResolver implementations in a file named:
META-INF/services/manifold.api.json.schema.IJsonFormatTypeResolver
This file contains the fully qualified names of your implementations, one per line e.g.,
com.example.FooFormatTypeResolver
com.example.BarFormatTypeResolver
| Modifier and Type | Method and Description |
|---|---|
JsonFormatType |
resolveType(String format)
Given a JSON Schema
"format" value such as "date-time" provide an JsonFormatType
to correspond with the format. |
coerce, toBindingValueJsonFormatType resolveType(String format)
"format" value such as "date-time" provide an JsonFormatType
to correspond with the format.format - The JSON Schema "format" value such as "date-time".JsonFormatType to correspond with the format or null if unresolved.Copyright © 2019. All rights reserved.