diff --git a/config b/config index d6b0ded3db..9a4fbe2bca 160000 --- a/config +++ b/config @@ -1 +1 @@ -Subproject commit d6b0ded3dbc94a26c5f07d6e660351118ea56a25 +Subproject commit 9a4fbe2bcae9a7b5f0d20159d41a8756d236e146 diff --git a/context/src/main/kotlin/io/spine/tools/validation/ErrorPlaceholder.kt b/context/src/main/kotlin/io/spine/tools/validation/ErrorPlaceholder.kt index c81fa2d7c4..58393e9712 100644 --- a/context/src/main/kotlin/io/spine/tools/validation/ErrorPlaceholder.kt +++ b/context/src/main/kotlin/io/spine/tools/validation/ErrorPlaceholder.kt @@ -33,16 +33,15 @@ package io.spine.tools.validation * Each validation option declares the supported placeholders. Take a look at * `options.proto` for examples. * - * Important Note: we have the same [enum][io.spine.validation.RuntimeErrorPlaceholder] + * ### Important Note + * + * We have the same items in this enum as in `io.spine.validation.RuntimeErrorPlaceholder` * in the runtime library, which is exactly as this one. Please keep them in sync. * This duplication is done intentionally to prevent clash between the runtime library, * which is added to the classpath of the Compiler and the runtime library, which is part * of the Compiler itself because it is a part of Spine. As we complete our migration * of validation to codegen, the runtime library will either be significantly simplified, * or even its content may be moved to `base`. Then, the duplicate enum should be removed. - * - * @see io.spine.validation.TemplateString - * @see io.spine.validation.RuntimeErrorPlaceholder */ public enum class ErrorPlaceholder(public val value: String) { diff --git a/dependencies.md b/dependencies.md index 173ec8d73d..27fbb46d48 100644 --- a/dependencies.md +++ b/dependencies.md @@ -1,6 +1,6 @@ -# Dependencies of `io.spine.tools:validation-context:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-context:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -1139,14 +1139,14 @@ The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-context-tests:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-context-tests:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -2233,14 +2233,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-gradle-plugin:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-gradle-plugin:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -3309,14 +3309,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-java:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-java:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -4403,14 +4403,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-java-bundle:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-java-bundle:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.google.auto.service. **Name** : auto-service-annotations. **Version** : 1.1.1. @@ -5188,14 +5188,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine:validation-jvm-runtime:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine:validation-jvm-runtime:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -6044,14 +6044,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-ksp:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-ksp:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.google.auto.service. **Name** : auto-service-annotations. **Version** : 1.1.1. @@ -6996,14 +6996,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-consumer:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-consumer:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -8090,14 +8090,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-consumer-dependency:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-consumer-dependency:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -9087,14 +9087,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-extensions:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-extensions:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -10237,14 +10237,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-runtime:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-runtime:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -11234,14 +11234,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-validating:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-validating:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -12235,14 +12235,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-validator:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-validator:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -13333,14 +13333,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-validator-dependency:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-validator-dependency:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -14165,14 +14165,14 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). -# Dependencies of `io.spine.tools:validation-vanilla:2.0.0-SNAPSHOT.380` +# Dependencies of `io.spine.tools:validation-vanilla:2.0.0-SNAPSHOT.381` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -15028,6 +15028,6 @@ This report was generated on **Thu Dec 18 20:32:39 WET 2025** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Thu Dec 18 20:32:39 WET 2025** using +This report was generated on **Fri Dec 19 15:26:30 WET 2025** using [Gradle-License-Report plugin](https://github.com/jk1/Gradle-License-Report) by Evgeny Naumenko, licensed under [Apache 2.0 License](https://github.com/jk1/Gradle-License-Report/blob/master/LICENSE). \ No newline at end of file diff --git a/jvm-runtime/src/main/java/io/spine/validate/FieldAwareMessage.java b/jvm-runtime/src/main/java/io/spine/validate/FieldAwareMessage.java new file mode 100644 index 0000000000..e82c0bdc5c --- /dev/null +++ b/jvm-runtime/src/main/java/io/spine/validate/FieldAwareMessage.java @@ -0,0 +1,36 @@ +/* + * Copyright 2025, TeamDev. All rights reserved. + * + * Licensed 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 + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Redistribution and use in source and/or binary forms, with or without + * modification, must retain the above copyright notice and the following + * disclaimer. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package io.spine.validate; + +/** + * Provided for backward compatibility. + * + * @deprecated Use {@link io.spine.validation.FieldAwareMessage} instead. + */ +@Deprecated +public interface FieldAwareMessage extends io.spine.validation.FieldAwareMessage { +} diff --git a/pom.xml b/pom.xml index 18470c3a25..d0c646537e 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ all modules and does not describe the project structure per-subproject. --> io.spine.tools validation -2.0.0-SNAPSHOT.380 +2.0.0-SNAPSHOT.381 2015 diff --git a/version.gradle.kts b/version.gradle.kts index a9701ef8d0..74820b3683 100644 --- a/version.gradle.kts +++ b/version.gradle.kts @@ -29,4 +29,4 @@ * * For Spine-based dependencies please see [io.spine.dependency.local.Spine]. */ -val validationVersion by extra("2.0.0-SNAPSHOT.380") +val validationVersion by extra("2.0.0-SNAPSHOT.381")