io.vulpine.lib.json.schema.v4.Format Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of json-schema-builder Show documentation
Show all versions of json-schema-builder Show documentation
Checked variations for Java 8+ functional interfaces.
The newest version!
package io.vulpine.lib.json.schema.v4;
import com.fasterxml.jackson.annotation.JsonValue;
/**
* JSON Schema Draft 4 string formats
*
* @since 1.1
*/
public enum Format
{
DATE_TIME("date-time"),
EMAIL("email"),
HOSTNAME("hostname"),
IPV4("ipv4"),
IPV6("ipv6"),
URI("uri");
public final String jsonValue;
Format(String jsonValue)
{
this.jsonValue = jsonValue;
}
@JsonValue
public String jsonValue()
{
return this.jsonValue;
}
}