diff --git a/dependencies.md b/dependencies.md index c5ca424b08..6925fa92a5 100644 --- a/dependencies.md +++ b/dependencies.md @@ -1,6 +1,6 @@ -# Dependencies of `io.spine.tools:validation-context:2.0.0-SNAPSHOT.403` +# Dependencies of `io.spine.tools:validation-context:2.0.0-SNAPSHOT.404` ## 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 **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-context-tests:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -1743,7 +1743,7 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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). @@ -1764,7 +1764,7 @@ This report was generated on **Fri Mar 06 18:16:01 WET 2026** using -# Dependencies of `io.spine.tools:validation-gradle-plugin:2.0.0-SNAPSHOT.403` +# Dependencies of `io.spine.tools:validation-gradle-plugin:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -2853,14 +2853,14 @@ This report was generated on **Fri Mar 06 18:16:01 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-java:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -3939,14 +3939,14 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-java-bundle:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : org.jetbrains. **Name** : annotations. **Version** : 13.0. @@ -3993,14 +3993,14 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:45 WET 2026** using +This report was generated on **Thu Mar 12 17:16:23 WET 2026** 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.403` +# Dependencies of `io.spine:validation-jvm-runtime:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -4833,14 +4833,14 @@ This report was generated on **Wed Mar 11 21:28:45 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-consumer:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -5423,14 +5423,14 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-consumer-dependency:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -5941,14 +5941,14 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-extensions:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -6628,14 +6628,14 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:27 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-runtime:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -7257,14 +7257,14 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-validating:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -7929,14 +7929,14 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-validator:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.20.0. @@ -8719,14 +8719,14 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-validator-dependency:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -8996,14 +8996,14 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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.403` +# Dependencies of `io.spine.tools:validation-vanilla:2.0.0-SNAPSHOT.404` ## Runtime 1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2. @@ -9346,6 +9346,6 @@ This report was generated on **Wed Mar 11 21:28:46 WET 2026** using The dependencies distributed under several licenses, are used according their commercial-use-friendly license. -This report was generated on **Wed Mar 11 21:28:46 WET 2026** using +This report was generated on **Thu Mar 12 17:16:24 WET 2026** 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/docs/_examples b/docs/_examples index 7084c5f46d..774c08ce1b 160000 --- a/docs/_examples +++ b/docs/_examples @@ -1 +1 @@ -Subproject commit 7084c5f46dbffd9bf741c54e96743b0fefc6d568 +Subproject commit 774c08ce1bb8da49fd97319cad632c5a93cdde45 diff --git a/docs/content/docs/validation/01-getting-started/adding-to-build.md b/docs/content/docs/validation/01-getting-started/adding-to-build.md index 9c480b76ed..65bc949a64 100644 --- a/docs/content/docs/validation/01-getting-started/adding-to-build.md +++ b/docs/content/docs/validation/01-getting-started/adding-to-build.md @@ -82,7 +82,7 @@ Add the Validation plugin to the build. ```kotlin plugins { module - id("io.spine.validation") version "2.0.0-SNAPSHOT.402" + id("io.spine.validation") version "2.0.0-SNAPSHOT.404" } ``` diff --git a/jvm-runtime/src/main/java/io/spine/validation/option/FieldValidatingOption.java b/jvm-runtime/src/main/java/io/spine/validation/option/FieldValidatingOption.java index 42fd830498..cb5d9b1acd 100644 --- a/jvm-runtime/src/main/java/io/spine/validation/option/FieldValidatingOption.java +++ b/jvm-runtime/src/main/java/io/spine/validation/option/FieldValidatingOption.java @@ -68,13 +68,12 @@ protected FieldValidatingOption(GeneratedExtension optionExtens protected T optionValue(FieldContext field) throws IllegalStateException { var option = valueFrom(field); return option.orElseThrow(() -> { - var descriptor = extension().getDescriptor(); - var fieldName = field.targetDeclaration() .name() .value(); - var containingTypeName = descriptor.getContainingType() - .getName(); + var containingTypeName = field.target() + .getContainingType() + .getName(); return couldNotGetOptionValueFrom(fieldName, containingTypeName); }); } diff --git a/pom.xml b/pom.xml index 0f84885f88..53874bbf0b 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.403 +2.0.0-SNAPSHOT.404 2015 diff --git a/version.gradle.kts b/version.gradle.kts index 3ea203f6a1..4e4910c52c 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.403") +val validationVersion by extra("2.0.0-SNAPSHOT.404")