opened
MDMS17
username_0
tried to validate a json file against json schema, but result was unexpected, here is the code
        static bool IsValidMcpdFile(FileInfo fi)
        {
            string McpdSchemaFile = File.ReadAllText("JsonSchema\\mcpd.json");
            var schema = SchemaReader.ReadSchema(McpdSchemaFile, "JsonSchema\\mcpd.json");
            string McpdJsonFile = File.ReadAllText(fi.FullName);
            Validator validator = new Validator(schema);
            Result[] errors = validator.Validate(McpdJsonFile, fi.FullName);
            bool result = true;
            if (errors.Any()) result = false;
            return result;
        }
inside result array, there's one item, and there're 3 items in its arguments, header/schemaversion, 15, 1.3, this is stranger, schema version in both schema and instance are 1.5, both files are attached here, please review, thanks!
[mcpd.zip](https://github.com/microsoft/jschema/files/5680607/mcpd.zip)
Json.Schema.Validation, wrong result
issue