Skip to content

Commit

Permalink
Added version format check to schemas.
Browse files Browse the repository at this point in the history
  • Loading branch information
d-stahl-ericsson committed Aug 31, 2016
1 parent faba165 commit f2ace53
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion schemas/EiffelActivityCanceledEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"type": "string"
},
"version": {
"type": "string"
"type": "string",
"pattern": "^(\\d+\\.)(\\d+\\.)(\\d+)$"
},
"time": {
"type": "integer"
Expand Down
3 changes: 2 additions & 1 deletion schemas/EiffelActivityFinishedEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"type": "string"
},
"version": {
"type": "string"
"type": "string",
"pattern": "^(\\d+\\.)(\\d+\\.)(\\d+)$"
},
"time": {
"type": "integer"
Expand Down
3 changes: 2 additions & 1 deletion schemas/EiffelActivityStartedEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"type": "string"
},
"version": {
"type": "string"
"type": "string",
"pattern": "^(\\d+\\.)(\\d+\\.)(\\d+)$"
},
"time": {
"type": "integer"
Expand Down
3 changes: 2 additions & 1 deletion schemas/EiffelActivityTriggeredEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"type": "string"
},
"version": {
"type": "string"
"type": "string",
"pattern": "^(\\d+\\.)(\\d+\\.)(\\d+)$"
},
"time": {
"type": "integer"
Expand Down
3 changes: 2 additions & 1 deletion schemas/EiffelArtifactCreatedEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"type": "string"
},
"version": {
"type": "string"
"type": "string",
"pattern": "^(\\d+\\.)(\\d+\\.)(\\d+)$"
},
"time": {
"type": "integer"
Expand Down
3 changes: 2 additions & 1 deletion schemas/EiffelArtifactPublishedEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"type": "string"
},
"version": {
"type": "string"
"type": "string",
"pattern": "^(\\d+\\.)(\\d+\\.)(\\d+)$"
},
"time": {
"type": "integer"
Expand Down
3 changes: 2 additions & 1 deletion schemas/EiffelConfidenceLevelModifiedEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"type": "string"
},
"version": {
"type": "string"
"type": "string",
"pattern": "^(\\d+\\.)(\\d+\\.)(\\d+)$"
},
"time": {
"type": "integer"
Expand Down

0 comments on commit f2ace53

Please sign in to comment.