Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/events/EiffelActivityFinishedEvent/simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"data": {
"outcome": {
"verdict": "TIMEOUT",
"conclusion": "TIMED_OUT",
"description": "Compilation timed out."
},
"persistentLogs": [
Expand Down
129 changes: 129 additions & 0 deletions schemas/EiffelActivityCanceledEvent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"meta": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "string"
},
"time": {
"type": "integer"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"type": "object",
"properties": {
"domainId": {
"type": "string"
},
"host": {
"type": "string"
},
"name": {
"type": "string"
},
"serializer": {
"type": "object",
"properties": {
"groupId": {
"type": "string"
},
"artifactId": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"groupId",
"artifactId",
"version"
],
"additionalProperties": false
},
"uri": {
"type": "string"
}
},
"required": [
"domainId"
],
"additionalProperties": false
}
},
"required": [
"id",
"type",
"version",
"time",
"source"
],
"additionalProperties": false
},
"data": {
"type": "object",
"properties": {
"reason": {
"type": "string"
},
"customData": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
}
},
"required": [
"key",
"value"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"target": {
"type": "string"
}
},
"required": [
"type",
"target"
],
"additionalProperties": false
}
}
},
"required": [
"meta",
"data",
"links"
]
}
170 changes: 170 additions & 0 deletions schemas/EiffelActivityFinishedEvent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"meta": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"version": {
"type": "string"
},
"time": {
"type": "integer"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"source": {
"type": "object",
"properties": {
"domainId": {
"type": "string"
},
"host": {
"type": "string"
},
"name": {
"type": "string"
},
"serializer": {
"type": "object",
"properties": {
"groupId": {
"type": "string"
},
"artifactId": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"groupId",
"artifactId",
"version"
],
"additionalProperties": false
},
"uri": {
"type": "string"
}
},
"required": [
"domainId"
],
"additionalProperties": false
}
},
"required": [
"id",
"type",
"version",
"time",
"source"
],
"additionalProperties": false
},
"data": {
"type": "object",
"properties": {
"outcome": {
"type": "object",
"properties": {
"conclusion": {
"type": "string",
"enum": [
"SUCCESSFUL",
"UNSUCCESSFUL",
"FAILED",
"ABORTED",
"TIMED_OUT",
"INCONCLUSIVE"
]
},
"description": {
"type": "string"
}
},
"required": [
"conclusion"
]
},
"persistentLogs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"uri": {
"type": "string"
}
},
"required": [
"name",
"uri"
],
"additionalProperties": false
}
},
"customData": {
"type": "array",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string"
},
"value": {
}
},
"required": [
"key",
"value"
],
"additionalProperties": false
}
}
},
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't outcome be required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course it should :)
Fixed.

"additionalProperties": false,
"required": [
"outcome"
]
},
"links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"target": {
"type": "string"
}
},
"required": [
"type",
"target"
],
"additionalProperties": false
}
}
},
"required": [
"meta",
"data",
"links"
]
}
Loading