public void TestJsonSchema()
        {
            var schema = new JsonSchema();
            TestJsonSchemaCommon(schema);

            // Json should not accept plain literal
            Assert.AreEqual(null, schema.GetDefaultTag(new Scalar(null, null, "boom", ScalarStyle.Plain, true, false)));
        }
Exemple #2
0
        public void TestJsonSchema()
        {
            var schema = new JsonSchema();

            TestJsonSchemaCommon(schema);

            // Json should not accept plain literal
            Assert.Equal(null, schema.GetDefaultTag(new Scalar(null, null, "boom", ScalarStyle.Plain, true, false)));
        }