Skip to content

Commit

Permalink
Update schemas to match the Paris edition of the protocol (#134)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
magnusbaeck authored Aug 11, 2021
1 parent 9dbec23 commit 70a1ec6
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 16 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.2.0
- Updated schemas to match the Paris edition of the protocol.

## 2.1.1
- Uplifted eiffel-remrem-parent version from 2.0.4 to 2.0.5.
- Uplifted eiffel-remrem-protocol-interface version from 2.1.0 to 2.1.1.
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<version>2.0.5</version>
</parent>
<artifactId>eiffel-remrem-semantics</artifactId>
<version>2.1.1</version>
<version>2.2.0</version>
<packaging>jar</packaging>
<properties>
<eclipse.jgit.version>5.0.1.201806211838-r</eclipse.jgit.version>
Expand Down Expand Up @@ -116,7 +116,7 @@
<mainClass>com.ericsson.eiffel.remrem.semantics.clone.PrepareLocalEiffelSchemas</mainClass>
<arguments>
<argument>https://github.com/eiffel-community/eiffel.git</argument>
<argument>tags/edition-agen-1</argument>
<argument>tags/edition-paris</argument>
<argument>https://github.com/Ericsson/eiffel-operations-extension.git</argument>
<argument>tags/edition-agen</argument>
</arguments>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class EiffelArtifactPublishedEventMeta implements Meta
*/
@SerializedName("version")
@Expose
private EiffelArtifactPublishedEventMeta.Version version = EiffelArtifactPublishedEventMeta.Version.fromValue("3.0.0");
private EiffelArtifactPublishedEventMeta.Version version = EiffelArtifactPublishedEventMeta.Version.fromValue("3.1.0");
/**
*
* (Required)
Expand Down Expand Up @@ -201,8 +201,8 @@ public static EiffelArtifactPublishedEventMeta.Type fromValue(String value) {

public enum Version {

@SerializedName("3.0.0")
_3_0_0("3.0.0");
@SerializedName("3.1.0")
_3_1_0("3.1.0");
private final String value;
private final static Map<String, EiffelArtifactPublishedEventMeta.Version> CONSTANTS = new HashMap<String, EiffelArtifactPublishedEventMeta.Version>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class EiffelCompositionDefinedEventMeta implements Meta
*/
@SerializedName("version")
@Expose
private EiffelCompositionDefinedEventMeta.Version version = EiffelCompositionDefinedEventMeta.Version.fromValue("3.0.0");
private EiffelCompositionDefinedEventMeta.Version version = EiffelCompositionDefinedEventMeta.Version.fromValue("3.1.0");
/**
*
* (Required)
Expand Down Expand Up @@ -201,8 +201,8 @@ public static EiffelCompositionDefinedEventMeta.Type fromValue(String value) {

public enum Version {

@SerializedName("3.0.0")
_3_0_0("3.0.0");
@SerializedName("3.1.0")
_3_1_0("3.1.0");
private final String value;
private final static Map<String, EiffelCompositionDefinedEventMeta.Version> CONSTANTS = new HashMap<String, EiffelCompositionDefinedEventMeta.Version>();

Expand Down
11 changes: 11 additions & 0 deletions src/main/java/com/ericsson/eiffel/semantics/events/Location.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

public class Location {

@SerializedName("name")
@Expose
private String name;
/**
*
* (Required)
Expand All @@ -38,6 +41,14 @@ public class Location {
@Expose
private String uri;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

/**
*
* (Required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"version": {
"type": "string",
"enum": [
"3.0.0"
"3.1.0"
],
"default": "3.0.0"
"default": "3.1.0"
},
"time": {
"type": "integer",
Expand Down Expand Up @@ -147,6 +147,9 @@
"type": "object",
"javaType": "com.ericsson.eiffel.semantics.events.Location",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"version": {
"type": "string",
"enum": [
"3.0.0"
"3.1.0"
],
"default": "3.0.0"
"default": "3.1.0"
},
"time": {
"type": "integer",
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/input/ArtifactPublished.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"msgParams": {
"meta": {
"type": "EiffelArtifactPublishedEvent",
"version": "3.0.0",
"version": "3.1.0",
"tags": [
"tag1",
"tag2"
Expand All @@ -24,6 +24,7 @@
"data": {
"locations": [{
"type": "ARTIFACTORY",
"name": "file1",
"uri": "https:\/\/one.place"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/input/CompositionDefined.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"msgParams": {
"meta": {
"type": "EiffelCompositionDefinedEvent",
"version": "3.0.0",
"version": "3.1.0",
"tags": [
"tag1",
"tag2"
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/output/ArtifactPublished.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"id": "ff2f8aae-692d-4906-a3a3-bd819d4769c3",
"type": "EiffelArtifactPublishedEvent",
"version": "3.0.0",
"version": "3.1.0",
"time": 1554389528061,
"tags": [
"tag1",
Expand All @@ -26,6 +26,7 @@
"locations": [
{
"type": "ARTIFACTORY",
"name": "file1",
"uri": "https://one.place"
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/output/CompositionDefined.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"meta": {
"id": "9019c5d4-4647-479e-bb5e-0a0c597c115e",
"type": "EiffelCompositionDefinedEvent",
"version": "3.0.0",
"version": "3.1.0",
"time": 1554389919067,
"tags": [
"tag1",
Expand Down

0 comments on commit 70a1ec6

Please sign in to comment.