Skip to content

Restore ErrorPlaceholder in the tools package#302

Merged
alexander-yevsyukov merged 9 commits into
masterfrom
restore-error-placeholder-in-tools
May 15, 2026
Merged

Restore ErrorPlaceholder in the tools package#302
alexander-yevsyukov merged 9 commits into
masterfrom
restore-error-placeholder-in-tools

Conversation

@alexander-yevsyukov
Copy link
Copy Markdown
Collaborator

@alexander-yevsyukov alexander-yevsyukov commented May 14, 2026

This PR restores the io.spine.tools.validation.ErrorPlacehoder type that was removed in #300.

Other notable changes

  • WHEN_IN item of io.spine.validation.ErrorPlaceholder was deprecated encouraging to use the code from Spine Time. We don't have an arrangement for introducing new placeholders. The deprecation would encourage the efforts towards the addressing the need.

@alexander-yevsyukov alexander-yevsyukov self-assigned this May 14, 2026
Copilot AI review requested due to automatic review settings May 14, 2026 20:13
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores the deprecated io.spine.tools.validation.ErrorPlaceholder enum for backward compatibility (to unblock older Spine Time code generation) and adds interoperability in the Java renderer by reintroducing templateString() support for the legacy placeholder type.

Changes:

  • Reintroduced io.spine.tools.validation.ErrorPlaceholder (deprecated) with conversion to io.spine.validation.ErrorPlaceholder.
  • Added a deprecated templateString() overload accepting the legacy placeholder enum and deprecated WHEN_IN in the runtime enum.
  • Bumped snapshot version references and refreshed published docs/dependency artifacts.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
version.gradle.kts Bumps published Validation snapshot version to ...421.
jvm-runtime/src/main/kotlin/io/spine/validation/ErrorPlaceholder.kt Deprecates WHEN_IN placeholder in runtime enum.
java/src/main/kotlin/io/spine/tools/validation/java/expression/TemplateStrings.kt Adds legacy-placeholder overload for templateString(); introduces JVM-name disambiguation.
context/src/main/kotlin/io/spine/tools/validation/ErrorPlaceholder.kt Restores deprecated legacy ErrorPlaceholder enum and provides toRuntime() conversion.
docs/dependencies/pom.xml Updates docs POM version to ...421.
docs/dependencies/dependencies.md Updates dependency report headers/timestamps (but one header remains on ...420).
docs/content/docs/validation/user/01-getting-started/adding-to-build.md Updates plugin version in docs snippet to ...421.
docs/content/docs/validation/developer/build-and-release.md Updates version snippet to ...421.
buildSrc/src/test/kotlin/io/spine/gradle/report/license/DependencyReportOutputTest.kt Simplifies dependency-report tests by removing legacy file setup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/dependencies/dependencies.md
@alexander-yevsyukov alexander-yevsyukov moved this to 🏗 In progress in v2.0 May 15, 2026
@alexander-yevsyukov alexander-yevsyukov changed the title Restore ErrorPlaceholder in the tools package Migrate to TemplatesString and Placeholder from Spine Base May 15, 2026
@alexander-yevsyukov alexander-yevsyukov merged commit 38e7369 into master May 15, 2026
9 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the restore-error-placeholder-in-tools branch May 15, 2026 18:03
@github-project-automation github-project-automation Bot moved this from 🏗 In progress to ✅ Done in v2.0 May 15, 2026
@alexander-yevsyukov alexander-yevsyukov changed the title Migrate to TemplatesString and Placeholder from Spine Base Restore ErrorPlaceholder in the tools package May 15, 2026
@alexander-yevsyukov alexander-yevsyukov changed the title Restore ErrorPlaceholder in the tools package Restore ErrorPlaceholder in the tools package May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants