Home ConstraintExtensions Class
ConstraintExtensions Class
Cancel

ConstraintExtensions Class

Namespace: Json.Schema

Inheritance: ConstraintExtensions 🡒 object

Convenience extensions for building constraints and processing evaluations.

Methods

GetKeywordConstraint(this ReadOnlySpan<KeywordConstraint> constraints)

Gets a constraint from a keyword with the given type.

Declaration

1
public static KeywordConstraint GetKeywordConstraint(this ReadOnlySpan<KeywordConstraint> constraints)
ParameterTypeDescription
constraintsReadOnlySpan<KeywordConstraint>The set of constraints.

Returns

The keyword evaluation, if it exists.

GetKeywordEvaluation(this KeywordEvaluation evaluation)

Gets an evaluation from a keyword with the given type.

Declaration

1
public static KeywordEvaluation GetKeywordEvaluation(this KeywordEvaluation evaluation)
ParameterTypeDescription
evaluationKeywordEvaluationThe source evaluation.

Returns

The keyword evaluation, if it exists.

Contents