Namespace: Json.Schema.Keywords.Draft201909
Inheritance: RecursiveRefKeyword 🡒 RefKeyword 🡒 object
Implemented interfaces:
- IKeywordHandler
Handles $recursiveRef.
Remarks
This keyword is used to create a recursive reference to a schema.
Properties
| Name | Type | Summary |
|---|---|---|
| Instance | RecursiveRefKeyword | Gets the singleton instance of the Json.Schema.Keywords.Draft201909.RecursiveRefKeyword. |
| Name | string | Gets the name of the handled keyword. |
Methods
Evaluate(KeywordData keyword, EvaluationContext context)
Evaluates the specified keyword using the provided evaluation context and returns the result of the evaluation.
Declaration
1
public override KeywordEvaluation Evaluate(KeywordData keyword, EvaluationContext context)
| Parameter | Type | Description |
|---|---|---|
| keyword | KeywordData | The keyword data to be evaluated. Cannot be null. |
| context | EvaluationContext | The context in which the keyword evaluation is performed. Cannot be null. |
Returns
A KeywordEvaluation object containing the results of the evaluation.
ValidateKeywordValue(JsonElement value)
Validates the specified JSON element as a keyword value and optionally returns a value to be shared across the other methods.
Declaration
1
public override object ValidateKeywordValue(JsonElement value)
| Parameter | Type | Description |
|---|---|---|
| value | JsonElement | The JSON element to validate and convert. Represents the value to be checked for keyword compliance. |
Returns
An object that is shared with the other methods. This object is saved to Json.Schema.KeywordData.Value.