public ArraySchema arraySchema() { return new ArraySchema(); }
public ArraySchema arraySchema() { return new ArraySchema(); }
/** * 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(); }
/** * 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(); }
ArraySchema array = new ArraySchema(); array.setTitle(property.getName()); array.setRequired(property.isRequired());
ArraySchema array = new ArraySchema(); array.setTitle(property.getName()); array.setRequired(property.isRequired());
ArraySchema array = new ArraySchema(); array.setTitle(property.getName()); array.setRequired(property.isRequired());
ArraySchema array = new ArraySchema(); array.setTitle(property.getName()); array.setRequired(property.isRequired());
ArraySchema array = new ArraySchema(); array.setTitle(property.getName()); array.setRequired(property.isRequired());