MCPcopy Create free account
hub / github.com/everit-org/json-schema / Schema

Method Schema

core/src/main/java/org/everit/json/schema/Schema.java:130–141  ·  view source on GitHub ↗

Constructor. @param builder the builder containing the optional title, description and id attributes of the schema

(Builder<?> builder)

Source from the content-addressed store, hash-verified

128 * the builder containing the optional title, description and id attributes of the schema
129 */
130 protected Schema(Builder<?> builder) {
131 this.title = builder.title;
132 this.description = builder.description;
133 this.id = builder.id;
134 this.schemaLocation = builder.schemaLocation == null ? null : builder.schemaLocation.toString();
135 this.location = builder.schemaLocation;
136 this.defaultValue = builder.defaultValue;
137 this.nullable = builder.nullable;
138 this.readOnly = builder.readOnly;
139 this.writeOnly = builder.writeOnly;
140 this.unprocessedProperties = new HashMap<>(builder.unprocessedProperties);
141 }
142
143 /**
144 * Performs the schema validation.

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected