Class JsonSchemaPropertySimpleArray


Convenience class for representing a property that's an array of simple types.

An instance of this object is equivalent to calling...

JsonSchemaProperty property = new JsonSchemaProperty(name) .setType(JsonType.ARRAY) .setItems( new JsonSchema().setType(elementType) );

  • Constructor Details

    • JsonSchemaPropertySimpleArray

      public JsonSchemaPropertySimpleArray(String name, JsonType elementType)
      Constructor.
      Parameters:
      name - The name of the schema property.
      elementType - The JSON type of the elements in the array.