Class JsonSchemaLenientDateTimeFormat
java.lang.Object
org.frankframework.pipes.JsonSchemaLenientDateTimeFormat
- All Implemented Interfaces:
com.networknt.schema.format.Format
public class JsonSchemaLenientDateTimeFormat
extends Object
implements com.networknt.schema.format.Format
Frequently, JSON 'date-time' formats defined in openapi specifications are not strictly compliant with RFC 3339, as they use offsets
like +0100 instead of +01:00. This class is a custom implementation of the 'date-time' format that first tries to parse the value
using the strict RFC 3339 format, and if that fails, it falls back to a more lenient format that accepts offsets without a colon.
- Author:
- evandongen
- See Also:
-
Constructor Details
-
JsonSchemaLenientDateTimeFormat
public JsonSchemaLenientDateTimeFormat()
-
-
Method Details
-
getCustomSchemaRegistry
public static com.networknt.schema.SchemaRegistry getCustomSchemaRegistry() -
getName
- Specified by:
getNamein interfacecom.networknt.schema.format.Format
-
matches
- Specified by:
matchesin interfacecom.networknt.schema.format.Format
-