Skip to content

Commit b8c1583

Browse files
Merge pull request #232 from SpineEventEngine/use-json-for-placeholders
Use compact JSON for `Message` placeholders
2 parents a53b138 + 0661fd6 commit b8c1583

File tree

18 files changed

+280
-202
lines changed

18 files changed

+280
-202
lines changed

dependencies.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22

3-
# Dependencies of `io.spine.validation:spine-validation-java:2.0.0-SNAPSHOT.340`
3+
# Dependencies of `io.spine.validation:spine-validation-java:2.0.0-SNAPSHOT.341`
44

55
## Runtime
66
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.18.3.
@@ -1008,12 +1008,12 @@
10081008

10091009
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
10101010

1011-
This report was generated on **Mon May 19 14:24:19 CEST 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).
1011+
This report was generated on **Tue May 20 15:12:43 CEST 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).
10121012

10131013

10141014

10151015

1016-
# Dependencies of `io.spine.validation:spine-validation-java-api:2.0.0-SNAPSHOT.340`
1016+
# Dependencies of `io.spine.validation:spine-validation-java-api:2.0.0-SNAPSHOT.341`
10171017

10181018
## Runtime
10191019
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.18.3.
@@ -2021,12 +2021,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
20212021

20222022
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
20232023

2024-
This report was generated on **Mon May 19 14:24:19 CEST 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).
2024+
This report was generated on **Tue May 20 15:12:43 CEST 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).
20252025

20262026

20272027

20282028

2029-
# Dependencies of `io.spine.validation:spine-validation-java-bundle:2.0.0-SNAPSHOT.340`
2029+
# Dependencies of `io.spine.validation:spine-validation-java-bundle:2.0.0-SNAPSHOT.341`
20302030

20312031
## Runtime
20322032
1. **Group** : org.jetbrains. **Name** : annotations. **Version** : 26.0.2.
@@ -2752,12 +2752,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
27522752

27532753
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
27542754

2755-
This report was generated on **Mon May 19 14:24:19 CEST 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).
2755+
This report was generated on **Tue May 20 15:12:43 CEST 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).
27562756

27572757

27582758

27592759

2760-
# Dependencies of `io.spine.validation:spine-validation-java-runtime:2.0.0-SNAPSHOT.340`
2760+
# Dependencies of `io.spine.validation:spine-validation-java-runtime:2.0.0-SNAPSHOT.341`
27612761

27622762
## Runtime
27632763
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -3587,12 +3587,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
35873587

35883588
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
35893589

3590-
This report was generated on **Mon May 19 14:24:19 CEST 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).
3590+
This report was generated on **Tue May 20 15:12:43 CEST 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).
35913591

35923592

35933593

35943594

3595-
# Dependencies of `io.spine.validation:spine-validation-java-tests:2.0.0-SNAPSHOT.340`
3595+
# Dependencies of `io.spine.validation:spine-validation-java-tests:2.0.0-SNAPSHOT.341`
35963596

35973597
## Runtime
35983598
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.18.3.
@@ -4684,12 +4684,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
46844684

46854685
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
46864686

4687-
This report was generated on **Mon May 19 14:24:20 CEST 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).
4687+
This report was generated on **Tue May 20 15:12:43 CEST 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).
46884688

46894689

46904690

46914691

4692-
# Dependencies of `io.spine.validation:spine-validation-model:2.0.0-SNAPSHOT.340`
4692+
# Dependencies of `io.spine.validation:spine-validation-model:2.0.0-SNAPSHOT.341`
46934693

46944694
## Runtime
46954695
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.18.3.
@@ -5705,12 +5705,12 @@ This report was generated on **Mon May 19 14:24:20 CEST 2025** using [Gradle-Lic
57055705

57065706
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
57075707

5708-
This report was generated on **Mon May 19 14:24:19 CEST 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).
5708+
This report was generated on **Tue May 20 15:12:43 CEST 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).
57095709

57105710

57115711

57125712

5713-
# Dependencies of `io.spine.validation:spine-validation-proto:2.0.0-SNAPSHOT.340`
5713+
# Dependencies of `io.spine.validation:spine-validation-proto:2.0.0-SNAPSHOT.341`
57145714

57155715
## Runtime
57165716
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.18.3.
@@ -6798,12 +6798,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
67986798

67996799
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
68006800

6801-
This report was generated on **Mon May 19 14:24:19 CEST 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).
6801+
This report was generated on **Tue May 20 15:12:43 CEST 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).
68026802

68036803

68046804

68056805

6806-
# Dependencies of `io.spine.validation:spine-validation-consumer:2.0.0-SNAPSHOT.340`
6806+
# Dependencies of `io.spine.validation:spine-validation-consumer:2.0.0-SNAPSHOT.341`
68076807

68086808
## Runtime
68096809
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.18.3.
@@ -7811,12 +7811,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
78117811

78127812
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
78137813

7814-
This report was generated on **Mon May 19 14:24:19 CEST 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).
7814+
This report was generated on **Tue May 20 15:12:43 CEST 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).
78157815

78167816

78177817

78187818

7819-
# Dependencies of `io.spine.validation:spine-validation-consumer-dependency:2.0.0-SNAPSHOT.340`
7819+
# Dependencies of `io.spine.validation:spine-validation-consumer-dependency:2.0.0-SNAPSHOT.341`
78207820

78217821
## Runtime
78227822
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -8783,12 +8783,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
87838783

87848784
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
87858785

8786-
This report was generated on **Mon May 19 14:24:19 CEST 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).
8786+
This report was generated on **Tue May 20 15:12:43 CEST 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).
87878787

87888788

87898789

87908790

8791-
# Dependencies of `io.spine.validation:spine-validation-extensions:2.0.0-SNAPSHOT.340`
8791+
# Dependencies of `io.spine.validation:spine-validation-extensions:2.0.0-SNAPSHOT.341`
87928792

87938793
## Runtime
87948794
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.18.3.
@@ -9876,12 +9876,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
98769876

98779877
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
98789878

9879-
This report was generated on **Mon May 19 14:24:19 CEST 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).
9879+
This report was generated on **Tue May 20 15:12:43 CEST 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).
98809880

98819881

98829882

98839883

9884-
# Dependencies of `io.spine.validation:spine-validation-runtime:2.0.0-SNAPSHOT.340`
9884+
# Dependencies of `io.spine.validation:spine-validation-runtime:2.0.0-SNAPSHOT.341`
98859885

98869886
## Runtime
98879887
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -10848,12 +10848,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
1084810848

1084910849
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
1085010850

10851-
This report was generated on **Mon May 19 14:24:19 CEST 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).
10851+
This report was generated on **Tue May 20 15:12:43 CEST 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).
1085210852

1085310853

1085410854

1085510855

10856-
# Dependencies of `io.spine.validation:spine-validation-validating:2.0.0-SNAPSHOT.340`
10856+
# Dependencies of `io.spine.validation:spine-validation-validating:2.0.0-SNAPSHOT.341`
1085710857

1085810858
## Runtime
1085910859
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -11824,12 +11824,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
1182411824

1182511825
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
1182611826

11827-
This report was generated on **Mon May 19 14:24:19 CEST 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).
11827+
This report was generated on **Tue May 20 15:12:43 CEST 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).
1182811828

1182911829

1183011830

1183111831

11832-
# Dependencies of `io.spine.validation:spine-validation-vanilla:2.0.0-SNAPSHOT.340`
11832+
# Dependencies of `io.spine.validation:spine-validation-vanilla:2.0.0-SNAPSHOT.341`
1183311833

1183411834
## Runtime
1183511835
1. **Group** : com.google.code.findbugs. **Name** : jsr305. **Version** : 3.0.2.
@@ -12716,12 +12716,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
1271612716

1271712717
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
1271812718

12719-
This report was generated on **Mon May 19 14:24:19 CEST 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).
12719+
This report was generated on **Tue May 20 15:12:43 CEST 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).
1272012720

1272112721

1272212722

1272312723

12724-
# Dependencies of `io.spine.validation:spine-validation-configuration:2.0.0-SNAPSHOT.340`
12724+
# Dependencies of `io.spine.validation:spine-validation-configuration:2.0.0-SNAPSHOT.341`
1272512725

1272612726
## Runtime
1272712727
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.18.3.
@@ -13809,12 +13809,12 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
1380913809

1381013810
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
1381113811

13812-
This report was generated on **Mon May 19 14:24:19 CEST 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).
13812+
This report was generated on **Tue May 20 15:12:43 CEST 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).
1381313813

1381413814

1381513815

1381613816

13817-
# Dependencies of `io.spine.validation:spine-validation-context:2.0.0-SNAPSHOT.340`
13817+
# Dependencies of `io.spine.validation:spine-validation-context:2.0.0-SNAPSHOT.341`
1381813818

1381913819
## Runtime
1382013820
1. **Group** : com.fasterxml.jackson. **Name** : jackson-bom. **Version** : 2.18.3.
@@ -14902,4 +14902,4 @@ This report was generated on **Mon May 19 14:24:19 CEST 2025** using [Gradle-Lic
1490214902

1490314903
The dependencies distributed under several licenses, are used according their commercial-use-friendly license.
1490414904

14905-
This report was generated on **Mon May 19 14:24:19 CEST 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).
14905+
This report was generated on **Tue May 20 15:12:43 CEST 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).

java-api/src/main/kotlin/io/spine/validation/api/Strings.kt

Lines changed: 0 additions & 32 deletions
This file was deleted.

java-api/src/main/kotlin/io/spine/validation/api/expression/ClassNames.kt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ public val TemplateStringClass: ClassName = ClassName(TemplateString::class)
7070
*/
7171
public val PatternClass: ClassName = ClassName(Pattern::class)
7272

73+
/**
74+
* The [ClassName] of [Map].
75+
*/
76+
public val MapClass: ClassName = ClassName(Map::class)
77+
78+
/**
79+
* The [ClassName] of [LinkedHashMap].
80+
*/
81+
public val LinkedHashMapClass: ClassName = ClassName(LinkedHashMap::class)
82+
7383
/**
7484
* The [ClassName] of [ImmutableList].
7585
*/
@@ -173,3 +183,12 @@ public val TimestampsClass: ClassName = ClassName(Timestamps::class)
173183
* The [ClassName] of [io.spine.base.Time].
174184
*/
175185
public val SpineTime: ClassName = ClassName(Time::class)
186+
187+
/**
188+
* The [ClassName] for `io.spine.type.Json`.
189+
*
190+
* Note: `Json` is a synthetic Java class, which contains Kotlin extensions.
191+
* It is available from Java, but not from Kotlin. So, we specify it as
192+
* a string literal here.
193+
*/
194+
public val JsonExtensionsClass: ClassName = ClassName("io.spine.type", "Json")

0 commit comments

Comments
 (0)