Describe the bug
The additionalProperties keyword is being treated as a property.
To Reproduce
using System;
using System.Text.Json;
using Json.Schema;
var schema = @"{
""$schema"": ""http://json-schema.org/draft-07/schema#"",
""additionalProperties"": false
}";
var data = @"{
""prop1"":""val""
}";
var jsonSchema = JsonSchema.FromText(schema);
var validationResult = jsonSchema.Validate(JsonDocument.Parse(data).RootElement, new ValidationOptions { OutputFormat = OutputFormat.Basic });
Console.WriteLine(JsonSerializer.Serialize(validationResult));
//outputs
{
"valid": false,
"keywordLocation": "#/additionalProperties/$false",
"instanceLocation": "#/prop1",
"error": "All values fail against the false schema"
}
Expected behaviour
The error should indicate that additional properties is present.

Desktop (please complete the following information):
- OS: Windows 10
- .NET 5 (SDK 5.0.100)
- Nuget Version [e.g. 22]

Describe the bug
The
additionalPropertieskeyword is being treated as a property.To Reproduce
Expected behaviour

The error should indicate that additional properties is present.
Desktop (please complete the following information):