Home ICustomSchemaCollector Interface
ICustomSchemaCollector Interface
Cancel

ICustomSchemaCollector Interface

Namespace: Json.Schema

Inheritance: ICustomSchemaCollector

Indicates that the keyword contains subschemas in such a way that does not fit with Json.Schema.ISchemaContainer, Json.Schema.ISchemaCollector, or Json.Schema.IKeyedSchemaCollector.

Properties

NameTypeSummary
SchemasIEnumerable<JsonSchema>The subschemas.

Methods

FindSubschema(IReadOnlyList<PointerSegment> segments)

Gets the indicated subschema.

Declaration

1
public abstract (JsonSchema Schema, int SegmentsConsumed) FindSubschema(IReadOnlyList<PointerSegment> segments)
ParameterTypeDescription
segmentsIReadOnlyList<PointerSegment>The JSON Pointer segments to follow.

Returns

If found, the schema and the number of segments followed to find the subschema; (null, 0) otherwise.

Contents