Class JsonSchemaRef

java.lang.Object
org.apache.juneau.dto.jsonschema.JsonSchema
org.apache.juneau.dto.jsonschema.JsonSchemaRef

public class JsonSchemaRef extends JsonSchema
Convenience class for representing a schema reference such as "{'$ref':'/url/to/ref'}".

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

JsonSchema schema = new JsonSchema().setRef(uri);

  • Constructor Details

    • JsonSchemaRef

      public JsonSchemaRef(Object uri)
      Constructor.

      The value can be of any of the following types: URI, URL, String. Strings must be valid URIs.

      URIs defined by UriResolver can be used for values.

      Parameters:
      uri - The URI of the target reference. Can be null.