Skip to content

Commit 70a1ec6

Browse files
authored
Update schemas to match the Paris edition of the protocol (#134)
This effectively means stepping up ArtP and CD to v3.1.0, but only the former actually affects the schemas. Regenerating the files deletes the copyright header in each file, but the header was retained.
1 parent 9dbec23 commit 70a1ec6

11 files changed

+35
-16
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 2.2.0
2+
- Updated schemas to match the Paris edition of the protocol.
3+
14
## 2.1.1
25
- Uplifted eiffel-remrem-parent version from 2.0.4 to 2.0.5.
36
- Uplifted eiffel-remrem-protocol-interface version from 2.1.0 to 2.1.1.

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<version>2.0.5</version>
88
</parent>
99
<artifactId>eiffel-remrem-semantics</artifactId>
10-
<version>2.1.1</version>
10+
<version>2.2.0</version>
1111
<packaging>jar</packaging>
1212
<properties>
1313
<eclipse.jgit.version>5.0.1.201806211838-r</eclipse.jgit.version>
@@ -116,7 +116,7 @@
116116
<mainClass>com.ericsson.eiffel.remrem.semantics.clone.PrepareLocalEiffelSchemas</mainClass>
117117
<arguments>
118118
<argument>https://github.com/eiffel-community/eiffel.git</argument>
119-
<argument>tags/edition-agen-1</argument>
119+
<argument>tags/edition-paris</argument>
120120
<argument>https://github.com/Ericsson/eiffel-operations-extension.git</argument>
121121
<argument>tags/edition-agen</argument>
122122
</arguments>

src/main/java/com/ericsson/eiffel/semantics/events/EiffelArtifactPublishedEventMeta.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class EiffelArtifactPublishedEventMeta implements Meta
4747
*/
4848
@SerializedName("version")
4949
@Expose
50-
private EiffelArtifactPublishedEventMeta.Version version = EiffelArtifactPublishedEventMeta.Version.fromValue("3.0.0");
50+
private EiffelArtifactPublishedEventMeta.Version version = EiffelArtifactPublishedEventMeta.Version.fromValue("3.1.0");
5151
/**
5252
*
5353
* (Required)
@@ -201,8 +201,8 @@ public static EiffelArtifactPublishedEventMeta.Type fromValue(String value) {
201201

202202
public enum Version {
203203

204-
@SerializedName("3.0.0")
205-
_3_0_0("3.0.0");
204+
@SerializedName("3.1.0")
205+
_3_1_0("3.1.0");
206206
private final String value;
207207
private final static Map<String, EiffelArtifactPublishedEventMeta.Version> CONSTANTS = new HashMap<String, EiffelArtifactPublishedEventMeta.Version>();
208208

src/main/java/com/ericsson/eiffel/semantics/events/EiffelCompositionDefinedEventMeta.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class EiffelCompositionDefinedEventMeta implements Meta
4747
*/
4848
@SerializedName("version")
4949
@Expose
50-
private EiffelCompositionDefinedEventMeta.Version version = EiffelCompositionDefinedEventMeta.Version.fromValue("3.0.0");
50+
private EiffelCompositionDefinedEventMeta.Version version = EiffelCompositionDefinedEventMeta.Version.fromValue("3.1.0");
5151
/**
5252
*
5353
* (Required)
@@ -201,8 +201,8 @@ public static EiffelCompositionDefinedEventMeta.Type fromValue(String value) {
201201

202202
public enum Version {
203203

204-
@SerializedName("3.0.0")
205-
_3_0_0("3.0.0");
204+
@SerializedName("3.1.0")
205+
_3_1_0("3.1.0");
206206
private final String value;
207207
private final static Map<String, EiffelCompositionDefinedEventMeta.Version> CONSTANTS = new HashMap<String, EiffelCompositionDefinedEventMeta.Version>();
208208

src/main/java/com/ericsson/eiffel/semantics/events/Location.java

+11
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
public class Location {
2323

24+
@SerializedName("name")
25+
@Expose
26+
private String name;
2427
/**
2528
*
2629
* (Required)
@@ -38,6 +41,14 @@ public class Location {
3841
@Expose
3942
private String uri;
4043

44+
public String getName() {
45+
return name;
46+
}
47+
48+
public void setName(String name) {
49+
this.name = name;
50+
}
51+
4152
/**
4253
*
4354
* (Required)

src/main/resources/schemas/input/EiffelArtifactPublishedEvent.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"version": {
2525
"type": "string",
2626
"enum": [
27-
"3.0.0"
27+
"3.1.0"
2828
],
29-
"default": "3.0.0"
29+
"default": "3.1.0"
3030
},
3131
"time": {
3232
"type": "integer",
@@ -147,6 +147,9 @@
147147
"type": "object",
148148
"javaType": "com.ericsson.eiffel.semantics.events.Location",
149149
"properties": {
150+
"name": {
151+
"type": "string"
152+
},
150153
"type": {
151154
"type": "string",
152155
"enum": [

src/main/resources/schemas/input/EiffelCompositionDefinedEvent.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"version": {
2525
"type": "string",
2626
"enum": [
27-
"3.0.0"
27+
"3.1.0"
2828
],
29-
"default": "3.0.0"
29+
"default": "3.1.0"
3030
},
3131
"time": {
3232
"type": "integer",

src/test/resources/input/ArtifactPublished.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelArtifactPublishedEvent",
5-
"version": "3.0.0",
5+
"version": "3.1.0",
66
"tags": [
77
"tag1",
88
"tag2"
@@ -24,6 +24,7 @@
2424
"data": {
2525
"locations": [{
2626
"type": "ARTIFACTORY",
27+
"name": "file1",
2728
"uri": "https:\/\/one.place"
2829
},
2930
{

src/test/resources/input/CompositionDefined.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"msgParams": {
33
"meta": {
44
"type": "EiffelCompositionDefinedEvent",
5-
"version": "3.0.0",
5+
"version": "3.1.0",
66
"tags": [
77
"tag1",
88
"tag2"

src/test/resources/output/ArtifactPublished.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"meta": {
33
"id": "ff2f8aae-692d-4906-a3a3-bd819d4769c3",
44
"type": "EiffelArtifactPublishedEvent",
5-
"version": "3.0.0",
5+
"version": "3.1.0",
66
"time": 1554389528061,
77
"tags": [
88
"tag1",
@@ -26,6 +26,7 @@
2626
"locations": [
2727
{
2828
"type": "ARTIFACTORY",
29+
"name": "file1",
2930
"uri": "https://one.place"
3031
},
3132
{

src/test/resources/output/CompositionDefined.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"meta": {
33
"id": "9019c5d4-4647-479e-bb5e-0a0c597c115e",
44
"type": "EiffelCompositionDefinedEvent",
5-
"version": "3.0.0",
5+
"version": "3.1.0",
66
"time": 1554389919067,
77
"tags": [
88
"tag1",

0 commit comments

Comments
 (0)