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.codegen.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 |
|---|---|
Set<String> |
getFormats()
A list of one or more format names such as
"date-time", "date", "time" to be referenced in Json Schema
"format" types. |
JsonFormatType |
resolveType(String format)
Given a JSON Schema
"format" value such as "date-time" provide an JsonFormatType
to correspond with the format. |
coerce, toBindingValueSet<String> getFormats()
"date-time", "date", "time" to be referenced in Json Schema
"format" types.JsonFormatType 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 © 2020. All rights reserved.