You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When adding a $ref inside a file that itself is a referenced file the grandhild schema fails to be resolved.
To Reproduce
See the attached files, or:
Create a schema with a @ref to another schema, that has a @ref to the yet another schema. Then evaluate it against a json file that follows the schema.
Expected behavior
It throws a JsonSchemaException "Cannot resolve base schema from https://json-everything.net/level2.json" where level2.json is the grandchild.
at Json.Schema.RefKeyword.Evaluate(EvaluationContext context) at Json.Schema.EvaluationContext.Evaluate() at Json.Schema.PropertiesKeyword.Evaluate(EvaluationContext context) at Json.Schema.EvaluationContext.Evaluate() at Json.Schema.RefKeyword.Evaluate(EvaluationContext context) at Json.Schema.EvaluationContext.Evaluate() at Json.Schema.PropertiesKeyword.Evaluate(EvaluationContext context) at Json.Schema.EvaluationContext.Evaluate() at Json.Schema.JsonSchema.Evaluate(JsonNode root, EvaluationOptions options) at Json.Schema.JsonSchemaExtensions.Evaluate(JsonSchema jsonSchema, JsonElement jsonElement, EvaluationOptions options) at Json.Schema.JsonSchemaExtensions.Evaluate(JsonSchema jsonSchema, JsonDocument jsonDocument, EvaluationOptions options) at UserQuery.Main(), line 14
Environment
Describe the bug
When adding a $ref inside a file that itself is a referenced file the grandhild schema fails to be resolved.
To Reproduce
See the attached files, or:
Create a schema with a @ref to another schema, that has a @ref to the yet another schema. Then evaluate it against a json file that follows the schema.
Expected behavior
It throws a JsonSchemaException "Cannot resolve base schema from
https://json-everything.net/level2.json
" where level2.json is the grandchild.at Json.Schema.RefKeyword.Evaluate(EvaluationContext context) at Json.Schema.EvaluationContext.Evaluate() at Json.Schema.PropertiesKeyword.Evaluate(EvaluationContext context) at Json.Schema.EvaluationContext.Evaluate() at Json.Schema.RefKeyword.Evaluate(EvaluationContext context) at Json.Schema.EvaluationContext.Evaluate() at Json.Schema.PropertiesKeyword.Evaluate(EvaluationContext context) at Json.Schema.EvaluationContext.Evaluate() at Json.Schema.JsonSchema.Evaluate(JsonNode root, EvaluationOptions options) at Json.Schema.JsonSchemaExtensions.Evaluate(JsonSchema jsonSchema, JsonElement jsonElement, EvaluationOptions options) at Json.Schema.JsonSchemaExtensions.Evaluate(JsonSchema jsonSchema, JsonDocument jsonDocument, EvaluationOptions options) at UserQuery.Main(), line 14
Additional context
issueExample.zip
The text was updated successfully, but these errors were encountered: