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)
Parameter | Type | Description |
---|---|---|
constraints | ReadOnlySpan<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)
Parameter | Type | Description |
---|---|---|
evaluation | KeywordEvaluation | The source evaluation. |
Returns
The keyword evaluation, if it exists.