Skip to content

Commit

Permalink
chore(schemas): update OpenRPC API doc and JSON schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
bgins committed May 17, 2024
1 parent dc4f7a4 commit 69525a8
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 4 deletions.
39 changes: 37 additions & 2 deletions homestar-runtime/schemas/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"additionalProperties": false
},
{
"description": "Outgoing conenction error notification.",
"description": "Outgoing connection error notification.",
"type": "object",
"required": [
"outgoing_connection_error"
Expand All @@ -311,7 +311,7 @@
"additionalProperties": false
},
{
"description": "Incoming conenction error notification.",
"description": "Incoming connection error notification.",
"type": "object",
"required": [
"incoming_connection_error"
Expand All @@ -323,6 +323,19 @@
},
"additionalProperties": false
},
{
"description": "Autonat status changed notification.",
"type": "object",
"required": [
"status_changed_autonat"
],
"properties": {
"status_changed_autonat": {
"$ref": "#/definitions/status_changed_autonat"
}
},
"additionalProperties": false
},
{
"description": "mDNS discovered notification.",
"type": "object",
Expand Down Expand Up @@ -1100,6 +1113,28 @@
}
}
},
"status_changed_autonat": {
"type": "object",
"required": [
"status",
"timestamp"
],
"properties": {
"address": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"timestamp": {
"type": "integer",
"format": "int64"
}
}
},
"workflow_info_quorum_failure_dht": {
"type": "object",
"required": [
Expand Down
39 changes: 37 additions & 2 deletions homestar-runtime/schemas/network.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"additionalProperties": false
},
{
"description": "Outgoing conenction error notification.",
"description": "Outgoing connection error notification.",
"type": "object",
"required": [
"outgoing_connection_error"
Expand All @@ -56,7 +56,7 @@
"additionalProperties": false
},
{
"description": "Incoming conenction error notification.",
"description": "Incoming connection error notification.",
"type": "object",
"required": [
"incoming_connection_error"
Expand All @@ -68,6 +68,19 @@
},
"additionalProperties": false
},
{
"description": "Autonat status changed notification.",
"type": "object",
"required": [
"status_changed_autonat"
],
"properties": {
"status_changed_autonat": {
"$ref": "#/definitions/status_changed_autonat"
}
},
"additionalProperties": false
},
{
"description": "mDNS discovered notification.",
"type": "object",
Expand Down Expand Up @@ -845,6 +858,28 @@
}
}
},
"status_changed_autonat": {
"type": "object",
"required": [
"status",
"timestamp"
],
"properties": {
"address": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"timestamp": {
"type": "integer",
"format": "int64"
}
}
},
"workflow_info_quorum_failure_dht": {
"type": "object",
"required": [
Expand Down

0 comments on commit 69525a8

Please sign in to comment.