Class JsonSchemaProperty<SELF extends JsonSchemaProperty<SELF>>

java.lang.Object
org.apache.juneau.bean.jsonschema.JsonSchema<SELF>
org.apache.juneau.bean.jsonschema.JsonSchemaProperty<SELF>
Type Parameters:
SELF - The self type for fluent setters.
Direct Known Subclasses:
JsonSchemaPropertySimpleArray

public class JsonSchemaProperty<SELF extends JsonSchemaProperty<SELF>> extends JsonSchema<SELF>
Represents a JSON property in the JSON-Schema core specification.
  • Constructor Details

    • JsonSchemaProperty

      Default constructor.
    • JsonSchemaProperty

      public JsonSchemaProperty(String name)
      Convenience constructor.
      Parameters:
      name - The name of this property. Can be null to leave the property unset.
    • JsonSchemaProperty

      public JsonSchemaProperty(String name, JsonType type)
      Convenience constructor.
      Parameters:
      name - The name of this property. Can be null to leave the property unset.
      type - The JSON type of this property. Can be null to leave the property unset.