This is an automated email from the ASF dual-hosted git repository. jlmonteiro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomee.git
commit 4c2066625e82203402c812b8964a3bbcf8e3a604 Author: Jean-Louis Monteiro <[email protected]> AuthorDate: Wed Mar 23 22:29:04 2022 +0100 Also relocate other properties for message interpolation for instance --- .../apache/bval/jsr/DefaultConstraints.properties | 2 +- .../apache/bval/jsr/ValidationMessages.properties | 46 ++++++++++++++++++++++ .../bval/jsr/ValidationMessages_de.properties | 37 +++++++++++++++++ .../bval/jsr/ValidationMessages_en.properties | 20 ++++++++++ .../bval/jsr/ValidationMessages_es.properties | 37 +++++++++++++++++ .../bval/jsr/ValidationMessages_it.properties | 37 +++++++++++++++++ .../valueextraction/DefaultExtractors.properties | 25 ++++++++++++ 7 files changed, 203 insertions(+), 1 deletion(-) diff --git a/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/DefaultConstraints.properties b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/DefaultConstraints.properties index 43a707f..526ccbd 100644 --- a/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/DefaultConstraints.properties +++ b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/DefaultConstraints.properties @@ -15,7 +15,7 @@ # specific language governing permissions and limitations # under the License. -# configuration for mapping of javax.validation.constraints to ConstraintValidator implementations +# configuration for mapping of jakarta.validation.constraints to ConstraintValidator implementations # the annotations from the JSR303 validation-api are mentioned here, but you could # also extend the configuration to get a default implementation for other constraint-annotations. # format: key=constraint-annotation-class value=constraint-validator-class (multiple classes: comma-separated) diff --git a/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages.properties b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages.properties new file mode 100644 index 0000000..06cca0c --- /dev/null +++ b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages.properties @@ -0,0 +1,46 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# The properties listed below are resolved by the default message resolver. + +# standard +jakarta.validation.constraints.AssertTrue.message=must be true +jakarta.validation.constraints.AssertFalse.message=must be false +jakarta.validation.constraints.DecimalMax.message=must be less than ${inclusive == true ? 'or equal to ' : ''}{value} +jakarta.validation.constraints.DecimalMin.message=must be greater than ${inclusive == true ? 'or equal to ' : ''}{value} +jakarta.validation.constraints.Digits.message=numeric value out of bounds (<{integer} digits>.<{fraction} digits> expected) +jakarta.validation.constraints.Email.message=must be a well-formed email address +jakarta.validation.constraints.Future.message=must be a future date +jakarta.validation.constraints.FutureOrPresent.message=must be a date in the present or in the future +jakarta.validation.constraints.Max.message=must be less than or equal to {value} +jakarta.validation.constraints.Min.message=must be greater than or equal to {value} +jakarta.validation.constraints.Negative.message=must be less than 0 +jakarta.validation.constraints.NegativeOrZero.message=must be less than or equal to 0 +jakarta.validation.constraints.NotBlank.message=must not be blank +jakarta.validation.constraints.NotEmpty.message=must not be empty +jakarta.validation.constraints.NotNull.message=may not be null +jakarta.validation.constraints.Null.message=must be null +jakarta.validation.constraints.Past.message=must be a past date +jakarta.validation.constraints.PastOrPresent.message=must be a date in the past or in the present +jakarta.validation.constraints.Positive.message=must be greater than 0 +jakarta.validation.constraints.PositiveOrZero.message=must be greater than or equal to 0 +jakarta.validation.constraints.Pattern.message=must match the following regular expression: {regexp} +jakarta.validation.constraints.Size.message=size must be between {min} and {max} + +# additional built-ins +org.apache.bval.constraints.NotEmpty.message=may not be empty +org.apache.bval.constraints.Email.message=not a well-formed email address diff --git a/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_de.properties b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_de.properties new file mode 100644 index 0000000..d7d38b2 --- /dev/null +++ b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_de.properties @@ -0,0 +1,37 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# The properties listed below are resolved by the default message resolver. + +# standard +jakarta.validation.constraints.Null.message=muss "null" sein +jakarta.validation.constraints.NotNull.message=darf nicht "null" sein +jakarta.validation.constraints.AssertTrue.message=muss "true" sein +jakarta.validation.constraints.AssertFalse.message=muss "false" sein +jakarta.validation.constraints.Min.message=muss gr\u00F6\u00DFer oder gleich {value} sein +jakarta.validation.constraints.Max.message=muss kleiner oder gleich {value} sein +jakarta.validation.constraints.Size.message=Gr\u00F6\u00DFe muss zwischen {min} und {max} liegen +jakarta.validation.constraints.Digits.message=numerischer Wert au\u00DFerhalb des G\u00FCltigkeitsbereiches (erwarte: <{integer} digits>.<{fraction} digits>) +jakarta.validation.constraints.Past.message=muss Datum in der Vergangenheit sein +jakarta.validation.constraints.Future.message=muss Datum in der Zukunft sein +jakarta.validation.constraints.Pattern.message=Muss mit regul\u00E4rem Ausdruck \u00FCbereinstimmen: {regexp} +jakarta.validation.constraints.DecimalMax.message=muss kleiner oder gleich {value} sein +jakarta.validation.constraints.DecimalMin.message=muss gr\u00F6\u00DFer oder gleich {value} sein + +# additional built-ins +org.apache.bval.constraints.NotEmpty.message=darf nicht leer sein +org.apache.bval.constraints.Email.message=muss g\u00FCltiges Format einer EMail-Adresse sein diff --git a/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_en.properties b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_en.properties new file mode 100644 index 0000000..4ecfad3 --- /dev/null +++ b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_en.properties @@ -0,0 +1,20 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# intentionally empty, because english messages are located in the default bundle. +# this file ensures, that a lookup with an english locale uses the default bundle and not the +# bundle of the default locale, which is platform specific \ No newline at end of file diff --git a/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_es.properties b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_es.properties new file mode 100644 index 0000000..0cd6a08 --- /dev/null +++ b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_es.properties @@ -0,0 +1,37 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# The properties listed below are resolved by the default message resolver. + +# standard +jakarta.validation.constraints.Null.message=tiene que ser null +jakarta.validation.constraints.NotNull.message=no puede ser null +jakarta.validation.constraints.AssertTrue.message=tiene que ser true +jakarta.validation.constraints.AssertFalse.message=tiene que ser false +jakarta.validation.constraints.Min.message=tiene que ser menor o igual que {value} +jakarta.validation.constraints.Max.message=tiene que ser mayor o igual que {value} +jakarta.validation.constraints.Size.message=el tama\u00F1o tiene que estar comprendido entre {min} y {max} +jakarta.validation.constraints.Digits.message=valor num\u00E9rico fuera de los l\u00EDmites (se espera <{integer} cifras>.<{fraction} cifras>) +jakarta.validation.constraints.Past.message=tiene que ser una fecha en el pasado +jakarta.validation.constraints.Future.message=tiene que ser una fecha en el futuro +jakarta.validation.constraints.Pattern.message=tiene que corresponder a la expresi\u00F3n regular "{regexp}" +jakarta.validation.constraints.DecimalMax.message=tiene que ser mayor o igual que {value} +jakarta.validation.constraints.DecimalMin.message=tiene que ser menor o igual que {value} + +# additional built-ins +org.apache.bval.constraints.NotEmpty.message=no puede ser vac\u00EDo +org.apache.bval.constraints.Email.message=tiene que ser un correo email bien formado diff --git a/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_it.properties b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_it.properties new file mode 100644 index 0000000..d757900 --- /dev/null +++ b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/ValidationMessages_it.properties @@ -0,0 +1,37 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +# The properties listed below are resolved by the default message resolver. + +# standard +jakarta.validation.constraints.Null.message=deve essere null +jakarta.validation.constraints.NotNull.message=non pu\u00F2 essere null +jakarta.validation.constraints.AssertTrue.message=deve essere true +jakarta.validation.constraints.AssertFalse.message=deve essere false +jakarta.validation.constraints.Min.message=deve essere minore o uguale di {value} +jakarta.validation.constraints.Max.message=deve essere maggiore o uguale di {value} +jakarta.validation.constraints.Size.message=le dimensioni devono essere tra {min} e {max} +jakarta.validation.constraints.Digits.message=valore numerico fuori dai limiti (atteso <{integer} cifre>.<{fraction} cifre>) +jakarta.validation.constraints.Past.message=deve essere una data nel passato +jakarta.validation.constraints.Future.message=deve essere una data futura +jakarta.validation.constraints.Pattern.message=deve corrispondere all'espressione regolare "{regexp}" +jakarta.validation.constraints.DecimalMax.message=deve essere maggiore o uguale di {value} +jakarta.validation.constraints.DecimalMin.message=deve essere minore o uguale di {value} + +# additional built-ins +org.apache.bval.constraints.NotEmpty.message=non pu\u00F2 essere vuoto +org.apache.bval.constraints.Email.message=non \u00E8 un indirizzo email ben formato diff --git a/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/valueextraction/DefaultExtractors.properties b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/valueextraction/DefaultExtractors.properties new file mode 100644 index 0000000..2ea0afd --- /dev/null +++ b/deps/bval-jsr-shade/src/main/resources/org/apache/bval/jsr/valueextraction/DefaultExtractors.properties @@ -0,0 +1,25 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +jakarta.validation.valueextraction.ValueExtractor=\ + org.apache.bval.jsr.valueextraction.IterableElementExtractor,\ + org.apache.bval.jsr.valueextraction.ListElementExtractor + +jakarta.validation.valueextraction.ValueExtractor.container=\ + org.apache.bval.jsr.valueextraction.MapExtractor,\ + org.apache.bval.jsr.valueextraction.OptionalExtractor,\ + org.apache.bval.jsr.valueextraction.FxExtractor
