From c36d6aab24eb4e252c2bb54e72dee13f457521de Mon Sep 17 00:00:00 2001 From: channaveer_patil Date: Wed, 17 Apr 2024 00:23:58 +0530 Subject: [PATCH 1/8] i18 support for spanish and english locales are added --- src/main/resources/jsv-messages_en.properties | 70 +++++++++++++++++++ src/main/resources/jsv-messages_es.properties | 70 +++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 src/main/resources/jsv-messages_es.properties diff --git a/src/main/resources/jsv-messages_en.properties b/src/main/resources/jsv-messages_en.properties index e69de29bb..8e94095b6 100644 --- a/src/main/resources/jsv-messages_en.properties +++ b/src/main/resources/jsv-messages_en.properties @@ -0,0 +1,70 @@ +$ref = {0}: has an error with ''refs'' +additionalItems = {0}: index ''{1}'' is not defined in the schema and the schema does not allow additional items +additionalProperties = {0}: property ''{1}'' is not defined in the schema and the schema does not allow additional properties +allOf = {0}: must be valid to all the schemas {1} +anyOf = {0}: must be valid to any of the schemas {1} +const = {0}: must be the constant value ''{1}'' +contains = {0}: does not contain an element that passes these validations: {2} +contains.max = {0}: must contain at most {1} element(s) that passes these validations: {2} +contains.min = {0}: must contain at least {1} element(s) that passes these validations: {2} +dependencies = {0}: has an error with dependencies {1} +dependentRequired = {0}: has a missing property ''{1}'' which is dependent required because ''{2}'' is present +dependentSchemas = {0}: has an error with dependentSchemas {1} +enum = {0}: does not have a value in the enumeration {1} +exclusiveMaximum = {0}: must have an exclusive maximum value of {1} +exclusiveMinimum = {0}: must have an exclusive minimum value of {1} +false = {0}: schema for ''{1}'' is false +format = {0}: does not match the {1} pattern {2} +format.date = {0}: does not match the {1} pattern must be a valid RFC 3339 full-date +format.date-time = {0}: does not match the {1} pattern must be a valid RFC 3339 date-time +format.duration = {0}: does not match the {1} pattern must be a valid ISO 8601 duration +format.email = {0}: does not match the {1} pattern must be a valid RFC 5321 Mailbox +format.ipv4 = {0}: does not match the {1} pattern must be a valid RFC 2673 IP address +format.ipv6 = {0}: does not match the {1} pattern must be a valid RFC 4291 IP address +format.idn-email = {0}: does not match the {1} pattern must be a valid RFC 6531 Mailbox +format.idn-hostname = {0}: does not match the {1} pattern must be a valid RFC 5890 internationalized hostname +format.iri = {0}: does not match the {1} pattern must be a valid RFC 3987 IRI +format.iri-reference = {0}: does not match the {1} pattern must be a valid RFC 3987 IRI-reference +format.uri = {0}: does not match the {1} pattern must be a valid RFC 3986 URI +format.uri-reference = {0}: does not match the {1} pattern must be a valid RFC 3986 URI-reference +format.uri-template = {0}: does not match the {1} pattern must be a valid RFC 6570 URI Template +format.uuid = {0}: does not match the {1} pattern must be a valid RFC 4122 UUID +format.regex = {0}: does not match the {1} pattern must be a valid ECMA-262 regular expression +format.time = {0}: does not match the {1} pattern must be a valid RFC 3339 time +format.hostname = {0}: does not match the {1} pattern must be a valid RFC 1123 host name +format.json-pointer = {0}: does not match the {1} pattern must be a valid RFC 6901 JSON Pointer +format.relative-json-pointer = {0}: does not match the {1} pattern must be a valid IETF Relative JSON Pointer +format.unknown = {0}: has an unknown format ''{1}'' +id = {0}: ''{1}'' is not a valid {2} +items = {0}: index ''{1}'' is not defined in the schema and the schema does not allow additional items +maxContains = {0}: must be a non-negative integer in {1} +maxItems = {0}: must have at most {1} items but found {2} +maxLength = {0}: must be at most {1} characters long +maxProperties = {0}: must have at most {1} properties +maximum = {0}: must have a maximum value of {1} +minContains = {0}: must be a non-negative integer in {1} +minContainsVsMaxContains = {0}: minContains must less than or equal to maxContains in {1} +minItems = {0}: must have at least {1} items but found {2} +minLength = {0}: must be at least {1} characters long +minProperties = {0}: must have at least {1} properties +minimum = {0}: must have a minimum value of {1} +multipleOf = {0}: must be multiple of {1} +not = {0}: must not be valid to the schema {1} +notAllowed = {0}: property ''{1}'' is not allowed but it is in the data +oneOf = {0}: must be valid to one and only one schema, but {1} are valid +oneOf.indexes = {0}: must be valid to one and only one schema, but {1} are valid with indexes ''{2}'' +pattern = {0}: does not match the regex pattern {1} +patternProperties = {0}: has some error with ''pattern properties'' +prefixItems = {0}: no validator found at this index +properties = {0}: has an error with ''properties'' +propertyNames = {0}: property ''{1}'' name is not valid: {2} +readOnly = {0}: is a readonly field, it cannot be changed +required = {0}: required property ''{1}'' not found +type = {0}: {1} found, {2} expected +unevaluatedItems = {0}: index ''{1}'' is not evaluated and the schema does not allow unevaluated items +unevaluatedProperties = {0}: property ''{1}'' is not evaluated and the schema does not allow unevaluated properties +unionType = {0}: {1} found, {2} expected +uniqueItems = {0}: must have only unique items in the array +writeOnly = {0}: is a write-only field, it cannot appear in the data +contentEncoding = {0}: does not match content encoding {1} +contentMediaType = {0}: is not a content media type \ No newline at end of file diff --git a/src/main/resources/jsv-messages_es.properties b/src/main/resources/jsv-messages_es.properties new file mode 100644 index 000000000..8632fc6b6 --- /dev/null +++ b/src/main/resources/jsv-messages_es.properties @@ -0,0 +1,70 @@ +$ref = {0}: tiene un error con ''refs'' +additionalItems = {0}: el índice ''{1}'' no está definido en el esquema y el esquema no permite elementos adicionales +additionalProperties = {0}: la propiedad ''{1}'' no está definida en el esquema y el esquema no permite propiedades adicionales +allOf = {0}: debe ser válido para todos los esquemas {1} +anyOf = {0}: debe ser válido para cualquiera de los esquemas {1} +const = {0}: debe ser el valor constante ''{1}'' +contains = {0}: no contiene un elemento que pase estas validaciones: {2} +contains.max = {0}: debe contener como máximo {1} elemento(s) que pasen estas validaciones: {2} +contains.min = {0}: debe contener al menos {1} elemento(s) que pasen estas validaciones: {2} +dependencies = {0}: tiene un error con las dependencias {1} +dependentRequired = {0}: le falta una propiedad ''{1}'' que es dependiente requerida porque ''{2}'' está presente +dependentSchemas = {0}: tiene un error con dependienteSchemas {1} +enum={0}: no tiene valor en la enumeración {1} +exclusiveMaximum = {0}: debe tener un valor máximo exclusivo de {1} +exclusiveMinimum = {0}: debe tener un valor mínimo exclusivo de {1} +false = {0}: el esquema para ''{1}'' es falso +format = {0}: no coincide con el patrón {1} {2} +format.date = {0}: no coincide con el patrón {1} debe ser una fecha completa RFC 3339 válida +format.date-time = {0}: no coincide con el patrón {1} debe ser una fecha y hora RFC 3339 válida +format.duration = {0}: no coincide con el patrón {1} debe tener una duración ISO 8601 válida +format.email = {0}: no coincide con el patrón {1} debe ser un buzón RFC 5321 válido +format.ipv4 = {0}: no coincide con el patrón {1} debe ser una dirección IP RFC 2673 válida +format.ipv6 = {0}: no coincide con el patrón {1} debe ser una dirección IP RFC 4291 válida +format.idn-email = {0}: no coincide con el patrón {1} debe ser un buzón RFC 6531 válido +format.idn-hostname = {0}: no coincide con el patrón {1} debe ser un nombre de host internacionalizado RFC 5890 válido +format.iri = {0}: no coincide con el patrón {1} debe ser un IRI RFC 3987 válido +format.iri-reference = {0}: no coincide con el patrón {1} debe ser una referencia IRI RFC 3987 válida +format.uri = {0}: no coincide con el patrón {1} debe ser un URI RFC 3986 válido +format.uri-reference = {0}: no coincide con el patrón {1} debe ser una referencia URI RFC 3986 válida +format.uri-template = {0}: no coincide con el patrón {1} debe ser una plantilla URI RFC 6570 válida +format.uuid = {0}: no coincide con el patrón {1} debe ser un UUID RFC 4122 válido +format.regex = {0}: no coincide con el patrón {1} debe ser una expresión regular ECMA-262 válida +format.time = {0}: no coincide con el patrón {1} debe ser una hora RFC 3339 válida +format.hostname = {0}: no coincide con el patrón {1} debe ser un nombre de host RFC 1123 válido +format.json-pointer = {0}: no coincide con el patrón {1} debe ser un puntero JSON RFC 6901 válido +format.relative-json-pointer = {0}: no coincide con el patrón {1} debe ser un puntero JSON relativo de IETF válido +format.unknown = {0}: tiene un formato desconocido ''{1}'' +id = {0}: ''{1}'' no es un {2} válido +items = {0}: el índice ''{1}'' no está definido en el esquema y el esquema no permite elementos adicionales +maxContains = {0}: debe ser un número entero no negativo en {1} +maxItems = {0}: debe tener como máximo {1} elementos pero encontró {2} +maxLength = {0}: debe tener como máximo {1} caracteres +maxProperties = {0}: debe tener como máximo {1} propiedades +maximum = {0}: debe tener un valor máximo de {1} +minContains = {0}: debe ser un número entero no negativo en {1} +minContainsVsMaxContains = {0}: minContains debe ser menor o igual que maxContains en {1} +minItems = {0}: debe tener al menos {1} elementos pero se encontró {2} +minLength = {0}: debe tener al menos {1} caracteres +minProperties = {0}: debe tener al menos {1} propiedades +minimum = {0}: debe tener un valor mínimo de {1} +multipleOf = {0}: debe ser múltiplo de {1} +not = {0}: no debe ser válido para el esquema {1} +notAllowed = {0}: la propiedad ''{1}'' no está permitida pero está en los datos +oneOf = {0}: debe ser válido para uno y solo un esquema, pero {1} son válidos +oneOf.indexes = {0}: debe ser válido para uno y solo un esquema, pero {1} son válidos con índices ''{2}'' +pattern = {0}: no coincide con el patrón de expresión regular {1} +patternProperties = {0}: tiene algún error con ''propiedades de patrón'' +prefixItems = {0}: no se encontró ningún validador en este índice +properties = {0}: tiene un error con ''propiedades'' +propertyNames = {0}: el nombre de la propiedad ''{1}'' no es válido: {2} +readOnly = {0}: es un campo de solo lectura, no se puede cambiar +required = {0}: propiedad requerida ''{1}'' no encontrada +type = {0}: {1} encontrado, {2} esperado +unevaluatedItems = {0}: el índice ''{1}'' no se evalúa y el esquema no permite elementos no evaluados +unevaluatedProperties = {0}: la propiedad ''{1}'' no se evalúa y el esquema no permite propiedades no evaluadas +unionType = {0}: {1} encontrado, {2} esperado +uniqueItems = {0}: debe tener solo elementos únicos en la matriz. +writeOnly = {0}: es un campo de solo escritura, no puede aparecer en los datos +contentEncoding = {0}: no coincide con la codificación del contenido {1} +contentMediaType = {0}: no es un tipo de medio de contenido \ No newline at end of file From 999ff49af502eecb832881f2939739f32414ab33 Mon Sep 17 00:00:00 2001 From: channaveer_patil Date: Wed, 17 Apr 2024 12:02:15 +0530 Subject: [PATCH 2/8] reverted english locale language bundle --- src/main/resources/jsv-messages_en.properties | 70 ------------------- 1 file changed, 70 deletions(-) diff --git a/src/main/resources/jsv-messages_en.properties b/src/main/resources/jsv-messages_en.properties index 8e94095b6..e69de29bb 100644 --- a/src/main/resources/jsv-messages_en.properties +++ b/src/main/resources/jsv-messages_en.properties @@ -1,70 +0,0 @@ -$ref = {0}: has an error with ''refs'' -additionalItems = {0}: index ''{1}'' is not defined in the schema and the schema does not allow additional items -additionalProperties = {0}: property ''{1}'' is not defined in the schema and the schema does not allow additional properties -allOf = {0}: must be valid to all the schemas {1} -anyOf = {0}: must be valid to any of the schemas {1} -const = {0}: must be the constant value ''{1}'' -contains = {0}: does not contain an element that passes these validations: {2} -contains.max = {0}: must contain at most {1} element(s) that passes these validations: {2} -contains.min = {0}: must contain at least {1} element(s) that passes these validations: {2} -dependencies = {0}: has an error with dependencies {1} -dependentRequired = {0}: has a missing property ''{1}'' which is dependent required because ''{2}'' is present -dependentSchemas = {0}: has an error with dependentSchemas {1} -enum = {0}: does not have a value in the enumeration {1} -exclusiveMaximum = {0}: must have an exclusive maximum value of {1} -exclusiveMinimum = {0}: must have an exclusive minimum value of {1} -false = {0}: schema for ''{1}'' is false -format = {0}: does not match the {1} pattern {2} -format.date = {0}: does not match the {1} pattern must be a valid RFC 3339 full-date -format.date-time = {0}: does not match the {1} pattern must be a valid RFC 3339 date-time -format.duration = {0}: does not match the {1} pattern must be a valid ISO 8601 duration -format.email = {0}: does not match the {1} pattern must be a valid RFC 5321 Mailbox -format.ipv4 = {0}: does not match the {1} pattern must be a valid RFC 2673 IP address -format.ipv6 = {0}: does not match the {1} pattern must be a valid RFC 4291 IP address -format.idn-email = {0}: does not match the {1} pattern must be a valid RFC 6531 Mailbox -format.idn-hostname = {0}: does not match the {1} pattern must be a valid RFC 5890 internationalized hostname -format.iri = {0}: does not match the {1} pattern must be a valid RFC 3987 IRI -format.iri-reference = {0}: does not match the {1} pattern must be a valid RFC 3987 IRI-reference -format.uri = {0}: does not match the {1} pattern must be a valid RFC 3986 URI -format.uri-reference = {0}: does not match the {1} pattern must be a valid RFC 3986 URI-reference -format.uri-template = {0}: does not match the {1} pattern must be a valid RFC 6570 URI Template -format.uuid = {0}: does not match the {1} pattern must be a valid RFC 4122 UUID -format.regex = {0}: does not match the {1} pattern must be a valid ECMA-262 regular expression -format.time = {0}: does not match the {1} pattern must be a valid RFC 3339 time -format.hostname = {0}: does not match the {1} pattern must be a valid RFC 1123 host name -format.json-pointer = {0}: does not match the {1} pattern must be a valid RFC 6901 JSON Pointer -format.relative-json-pointer = {0}: does not match the {1} pattern must be a valid IETF Relative JSON Pointer -format.unknown = {0}: has an unknown format ''{1}'' -id = {0}: ''{1}'' is not a valid {2} -items = {0}: index ''{1}'' is not defined in the schema and the schema does not allow additional items -maxContains = {0}: must be a non-negative integer in {1} -maxItems = {0}: must have at most {1} items but found {2} -maxLength = {0}: must be at most {1} characters long -maxProperties = {0}: must have at most {1} properties -maximum = {0}: must have a maximum value of {1} -minContains = {0}: must be a non-negative integer in {1} -minContainsVsMaxContains = {0}: minContains must less than or equal to maxContains in {1} -minItems = {0}: must have at least {1} items but found {2} -minLength = {0}: must be at least {1} characters long -minProperties = {0}: must have at least {1} properties -minimum = {0}: must have a minimum value of {1} -multipleOf = {0}: must be multiple of {1} -not = {0}: must not be valid to the schema {1} -notAllowed = {0}: property ''{1}'' is not allowed but it is in the data -oneOf = {0}: must be valid to one and only one schema, but {1} are valid -oneOf.indexes = {0}: must be valid to one and only one schema, but {1} are valid with indexes ''{2}'' -pattern = {0}: does not match the regex pattern {1} -patternProperties = {0}: has some error with ''pattern properties'' -prefixItems = {0}: no validator found at this index -properties = {0}: has an error with ''properties'' -propertyNames = {0}: property ''{1}'' name is not valid: {2} -readOnly = {0}: is a readonly field, it cannot be changed -required = {0}: required property ''{1}'' not found -type = {0}: {1} found, {2} expected -unevaluatedItems = {0}: index ''{1}'' is not evaluated and the schema does not allow unevaluated items -unevaluatedProperties = {0}: property ''{1}'' is not evaluated and the schema does not allow unevaluated properties -unionType = {0}: {1} found, {2} expected -uniqueItems = {0}: must have only unique items in the array -writeOnly = {0}: is a write-only field, it cannot appear in the data -contentEncoding = {0}: does not match content encoding {1} -contentMediaType = {0}: is not a content media type \ No newline at end of file From b94056bb83d536db1da1d2002cce10881c3db313 Mon Sep 17 00:00:00 2001 From: channaveer_patil Date: Thu, 18 Apr 2024 11:55:32 +0530 Subject: [PATCH 3/8] new i18 language tag is added to Locales --- src/main/java/com/networknt/schema/i18n/Locales.java | 2 +- src/test/java/com/networknt/schema/LocaleTest.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/networknt/schema/i18n/Locales.java b/src/main/java/com/networknt/schema/i18n/Locales.java index 0c9231034..43f8fa8c7 100644 --- a/src/main/java/com/networknt/schema/i18n/Locales.java +++ b/src/main/java/com/networknt/schema/i18n/Locales.java @@ -30,7 +30,7 @@ public class Locales { /** * The list of locale resource bundles. */ - public static final String[] SUPPORTED_LANGUAGE_TAGS = new String[] { "ar", "cs", "da", "de", "fa", "fi", "fr", + public static final String[] SUPPORTED_LANGUAGE_TAGS = new String[] { "ar", "cs", "da", "de", "es", "fa", "fi", "fr", "iw", "he", "hr", "hu", "it", "ja", "ko", "nb", "nl", "pl", "pt", "ro", "ru", "sk", "sv", "th", "tr", "uk", "vi", "zh-CN", "zh-TW" }; diff --git a/src/test/java/com/networknt/schema/LocaleTest.java b/src/test/java/com/networknt/schema/LocaleTest.java index 4fc386f0e..779329cc9 100644 --- a/src/test/java/com/networknt/schema/LocaleTest.java +++ b/src/test/java/com/networknt/schema/LocaleTest.java @@ -145,6 +145,7 @@ void encoding() { expected.put("vi","$: phải dài tối đa 5 ký tự"); expected.put("zh_CN","$: 长度不得超过 5 个字符"); expected.put("zh_TW","$: 長度不得超過 5 個字元"); + expected.put("es","$: debe tener como máximo 5 caracteres"); // In later JDK versions the numbers will be formatted Map expectedAlternate = new HashMap<>(); From bb7009df98aa6a98845c9ddd9b7bee2c12faefe9 Mon Sep 17 00:00:00 2001 From: channaveer_patil Date: Thu, 18 Apr 2024 12:06:30 +0530 Subject: [PATCH 4/8] i18 spanish language testing in Locale test --- src/test/java/com/networknt/schema/LocaleTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/networknt/schema/LocaleTest.java b/src/test/java/com/networknt/schema/LocaleTest.java index 779329cc9..9fd3c455f 100644 --- a/src/test/java/com/networknt/schema/LocaleTest.java +++ b/src/test/java/com/networknt/schema/LocaleTest.java @@ -145,7 +145,7 @@ void encoding() { expected.put("vi","$: phải dài tối đa 5 ký tự"); expected.put("zh_CN","$: 长度不得超过 5 个字符"); expected.put("zh_TW","$: 長度不得超過 5 個字元"); - expected.put("es","$: debe tener como máximo 5 caracteres"); + expected.put("es","$: debe tener como máximo 5 caracteres"); // In later JDK versions the numbers will be formatted Map expectedAlternate = new HashMap<>(); From e6c2c08b7feddd90cefb03bd7dd5fda71ac6b932 Mon Sep 17 00:00:00 2001 From: channaveer_patil Date: Thu, 18 Apr 2024 12:35:05 +0530 Subject: [PATCH 5/8] spanish message changes --- src/test/java/com/networknt/schema/LocaleTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/networknt/schema/LocaleTest.java b/src/test/java/com/networknt/schema/LocaleTest.java index 9fd3c455f..779329cc9 100644 --- a/src/test/java/com/networknt/schema/LocaleTest.java +++ b/src/test/java/com/networknt/schema/LocaleTest.java @@ -145,7 +145,7 @@ void encoding() { expected.put("vi","$: phải dài tối đa 5 ký tự"); expected.put("zh_CN","$: 长度不得超过 5 个字符"); expected.put("zh_TW","$: 長度不得超過 5 個字元"); - expected.put("es","$: debe tener como máximo 5 caracteres"); + expected.put("es","$: debe tener como máximo 5 caracteres"); // In later JDK versions the numbers will be formatted Map expectedAlternate = new HashMap<>(); From 80e9213881e46c654f25480f4be0cbab44fe2d86 Mon Sep 17 00:00:00 2001 From: channaveer_patil Date: Thu, 18 Apr 2024 12:41:00 +0530 Subject: [PATCH 6/8] alternate message added --- src/test/java/com/networknt/schema/LocaleTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/com/networknt/schema/LocaleTest.java b/src/test/java/com/networknt/schema/LocaleTest.java index 779329cc9..882304455 100644 --- a/src/test/java/com/networknt/schema/LocaleTest.java +++ b/src/test/java/com/networknt/schema/LocaleTest.java @@ -151,6 +151,7 @@ void encoding() { Map expectedAlternate = new HashMap<>(); expectedAlternate.put("ar","$: يجب أن يكون طوله ٥ حرفًا على الأكثر"); expectedAlternate.put("fa","$: باید حداکثر ۵ کاراکتر باشد"); + expectedAlternate.put("es","$: debe tener como máximo 5 caracteres"); String schemaData = "{\r\n" + " \"type\": \"string\",\r\n" From e37cd92ef9d29ea370dc44d8cf3d7c2986c2d7e9 Mon Sep 17 00:00:00 2001 From: channaveer1 Date: Thu, 18 Apr 2024 17:27:20 +0530 Subject: [PATCH 7/8] Update jsv-messages_es.properties --- src/main/resources/jsv-messages_es.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/jsv-messages_es.properties b/src/main/resources/jsv-messages_es.properties index 8632fc6b6..fbbeecd6f 100644 --- a/src/main/resources/jsv-messages_es.properties +++ b/src/main/resources/jsv-messages_es.properties @@ -38,7 +38,7 @@ format.unknown = {0}: tiene un formato desconocido ''{1}'' id = {0}: ''{1}'' no es un {2} válido items = {0}: el índice ''{1}'' no está definido en el esquema y el esquema no permite elementos adicionales maxContains = {0}: debe ser un número entero no negativo en {1} -maxItems = {0}: debe tener como máximo {1} elementos pero encontró {2} +maxItems = {0}: debe tener como máximo {1} elementos pero se encontró {2} maxLength = {0}: debe tener como máximo {1} caracteres maxProperties = {0}: debe tener como máximo {1} propiedades maximum = {0}: debe tener un valor máximo de {1} @@ -67,4 +67,4 @@ unionType = {0}: {1} encontrado, {2} esperado uniqueItems = {0}: debe tener solo elementos únicos en la matriz. writeOnly = {0}: es un campo de solo escritura, no puede aparecer en los datos contentEncoding = {0}: no coincide con la codificación del contenido {1} -contentMediaType = {0}: no es un tipo de medio de contenido \ No newline at end of file +contentMediaType = {0}: no es un tipo de medio de contenido From 49e426b84006070ca45be04d7a14f6d5e81ce113 Mon Sep 17 00:00:00 2001 From: channaveer1 Date: Thu, 18 Apr 2024 17:28:41 +0530 Subject: [PATCH 8/8] Update LocaleTest.java --- src/test/java/com/networknt/schema/LocaleTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/test/java/com/networknt/schema/LocaleTest.java b/src/test/java/com/networknt/schema/LocaleTest.java index 882304455..779329cc9 100644 --- a/src/test/java/com/networknt/schema/LocaleTest.java +++ b/src/test/java/com/networknt/schema/LocaleTest.java @@ -151,7 +151,6 @@ void encoding() { Map expectedAlternate = new HashMap<>(); expectedAlternate.put("ar","$: يجب أن يكون طوله ٥ حرفًا على الأكثر"); expectedAlternate.put("fa","$: باید حداکثر ۵ کاراکتر باشد"); - expectedAlternate.put("es","$: debe tener como máximo 5 caracteres"); String schemaData = "{\r\n" + " \"type\": \"string\",\r\n"