public BooleanSchema booleanSchema() { return new BooleanSchema(); }
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj == null) return false; if (!(obj instanceof BooleanSchema)) return false; return _equals((BooleanSchema) obj); }
@Override public void enumTypes(Set<String> enums) { schema.setEnums(enums); }
BooleanSchema booleanSchema = new BooleanSchema(); booleanSchema.setTitle(name); result = booleanSchema; } else if ("string".equals(type) || "date".equals(type)) {
@Override public void format(JsonValueFormat format) { schema.setFormat(format); } }
BooleanSchema booleanSchema = new BooleanSchema(); booleanSchema.setTitle(name); result = booleanSchema; } else if ("string".equals(type) || "date".equals(type)) {
@Override public void format(JsonValueFormat format) { schema.setFormat(format); } }
BooleanSchema booleanSchema = new BooleanSchema(); booleanSchema.setTitle(name); result = booleanSchema; } else if ("string".equals(type) || "date".equals(type)) {
public BooleanSchema booleanSchema() { return new BooleanSchema(); }
@Override public boolean equals(Object obj) { if (obj == this) return true; if (obj == null) return false; if (!(obj instanceof BooleanSchema)) return false; return _equals((BooleanSchema) obj); }
@Override public void enumTypes(Set<String> enums) { schema.setEnums(enums); }
BooleanSchema booleanSchema = new BooleanSchema(); booleanSchema.setTitle(name); result = booleanSchema; } else if ("string".equals(type) || "date".equals(type)) {
/** * Create a schema which verifies only that an object is of the given format. * @param format the format to expect * @return the schema verifying the given format */ public static JsonSchema minimalForFormat(JsonFormatTypes format) { if (format != null) { switch (format) { case ARRAY: return new ArraySchema(); case OBJECT: return new ObjectSchema(); case BOOLEAN: return new BooleanSchema(); case INTEGER: return new IntegerSchema(); case NUMBER: return new NumberSchema(); case STRING: return new StringSchema(); case NULL: return new NullSchema(); case ANY: default: } } return new AnySchema(); }
BooleanSchema booleanSchema = new BooleanSchema(); booleanSchema.setTitle(name); result = booleanSchema; } else if ("string".equals(type) || "date".equals(type)) {
/** * Create a schema which verifies only that an object is of the given format. * @param format the format to expect * @return the schema verifying the given format */ public static JsonSchema minimalForFormat(JsonFormatTypes format) { if (format != null) { switch (format) { case ARRAY: return new ArraySchema(); case OBJECT: return new ObjectSchema(); case BOOLEAN: return new BooleanSchema(); case INTEGER: return new IntegerSchema(); case NUMBER: return new NumberSchema(); case STRING: return new StringSchema(); case NULL: return new NullSchema(); case ANY: default: } } return new AnySchema(); }