1 package com.networknt.schema; 2 3 import org.junit.jupiter.api.Test; 4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertThrows; 6 7 public class Issue532Test { 8 @Test failure()9 public void failure() { 10 JsonSchemaFactory factory = JsonSchemaFactory.getInstance(SpecVersion.VersionFlag.V7); 11 JsonSchemaException ex = assertThrows(JsonSchemaException.class, () -> { 12 factory.getSchema("{ \"$schema\": true }"); 13 }); 14 assertEquals("Unknown MetaSchema: true", ex.getMessage()); 15 } 16 } 17