@@ -614,7 +614,7 @@ describe("Error messages", async () => {
614614 {
615615 schemaLocation : "https://example.com/main#/pattern" ,
616616 instanceLocation : "#" ,
617- message : localization . getStringErrorMessage ( { pattern : "^[a-z]+$" } )
617+ message : localization . getPatternErrorMessage ( "^[a-z]+$" )
618618 }
619619 ] ) ;
620620 } ) ;
@@ -883,7 +883,7 @@ describe("Error messages", async () => {
883883 {
884884 schemaLocation : "https://example.com/main#/anyOf/1/properties/ID/pattern" ,
885885 instanceLocation : "#/ID" ,
886- message : localization . getStringErrorMessage ( { pattern : "^[0-9\\-]+$" } )
886+ message : localization . getPatternErrorMessage ( "^[0-9\\-]+$" )
887887 }
888888 ] ) ;
889889 } ) ;
@@ -1355,7 +1355,7 @@ describe("Error messages", async () => {
13551355 expect ( result . errors ) . to . eql ( [
13561356 {
13571357 instanceLocation : "#/Foo" ,
1358- message : localization . getStringErrorMessage ( { pattern : "^[a-z]*$" } ) ,
1358+ message : localization . getPatternErrorMessage ( "^[a-z]*$" ) ,
13591359 schemaLocation : "https://example.com/main#/propertyNames/pattern"
13601360 }
13611361 ] ) ;
@@ -1382,7 +1382,7 @@ describe("Error messages", async () => {
13821382 expect ( result . errors ) . to . eql ( [
13831383 {
13841384 instanceLocation : "#/Foo" ,
1385- message : localization . getStringErrorMessage ( { pattern : "^[a-z]*$" } ) ,
1385+ message : localization . getPatternErrorMessage ( "^[a-z]*$" ) ,
13861386 schemaLocation : "https://example.com/main#/propertyNames/pattern"
13871387 }
13881388 ] ) ;
@@ -1409,7 +1409,7 @@ describe("Error messages", async () => {
14091409 expect ( result . errors ) . to . eql ( [
14101410 {
14111411 instanceLocation : "#*/Foo" ,
1412- message : localization . getStringErrorMessage ( { pattern : "^[a-z]*$" } ) ,
1412+ message : localization . getPatternErrorMessage ( "^[a-z]*$" ) ,
14131413 schemaLocation : "https://example.com/main#/propertyNames/pattern"
14141414 }
14151415 ] ) ;
@@ -1503,8 +1503,7 @@ describe("Error messages", async () => {
15031503 $schema : "https://json-schema.org/draft/2020-12/schema" ,
15041504 allOf : [
15051505 { minLength : 3 } ,
1506- { maxLength : 5 } ,
1507- { pattern : "^[a-z]+$" }
1506+ { maxLength : 5 }
15081507 ]
15091508 } , schemaUri ) ;
15101509
@@ -1521,10 +1520,6 @@ describe("Error messages", async () => {
15211520 {
15221521 absoluteKeywordLocation : "https://example.com/main#/allOf/1/maxLength" ,
15231522 instanceLocation : "#"
1524- } ,
1525- {
1526- absoluteKeywordLocation : "https://example.com/main#/allOf/2/pattern" ,
1527- instanceLocation : "#"
15281523 }
15291524 ]
15301525 } ;
@@ -1533,11 +1528,10 @@ describe("Error messages", async () => {
15331528 expect ( result . errors ) . to . eql ( [ {
15341529 schemaLocation : [
15351530 "https://example.com/main#/allOf/0/minLength" ,
1536- "https://example.com/main#/allOf/1/maxLength" ,
1537- "https://example.com/main#/allOf/2/pattern"
1531+ "https://example.com/main#/allOf/1/maxLength"
15381532 ] ,
15391533 instanceLocation : "#" ,
1540- message : localization . getStringErrorMessage ( { minLength : 3 , maxLength : 5 , pattern : "^[a-z]+$" } )
1534+ message : localization . getStringErrorMessage ( { minLength : 3 , maxLength : 5 } )
15411535 } ] ) ;
15421536 } ) ;
15431537} ) ;
0 commit comments