Beispiel #1
0
        private void ProcessRefKeyword(JsonPointer path, RefKeyword keyword, SchemaContext context)
        {
            int subSchemaIndex = 0;

            foreach (var subSchema in keyword.GetSubschemas())
            {
                var subSchemaPath = path.Combine(JsonPointer.Parse($"/[{subSchemaIndex}]"));
                ProcessSubSchema(subSchemaPath, subSchema, context);

                subSchemaIndex++;
            }
        }
Beispiel #2
0
 private static void KeywordEqual(RefKeyword expected, RefKeyword actual)
 {
     Assert.Equal(expected.Reference, actual.Reference);
 }