This repository has been archived by the owner on Feb 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deployment manifest (this should replace the old service discovery pr…
…otobuf).
- Loading branch information
1 parent
0e9a0aa
commit a999daf
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"$id": "https://restate.dev/deployment.manifest.json", | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"type": "object", | ||
"title": "Deployment", | ||
"description": "Restate deployment manifest", | ||
"properties": { | ||
"protocolMode": { | ||
"title": "ProtocolMode", | ||
"enum": ["BIDI_STREAM", "REQUEST_RESPONSE"] | ||
}, | ||
"minProtocolVersion": { | ||
"type": "integer", | ||
"minimum": 0 | ||
}, | ||
"maxProtocolVersion": { | ||
"type": "integer", | ||
"maximum": 0 | ||
}, | ||
"components": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"title": "Component", | ||
"properties": { | ||
"fullyQualifiedComponentName": { | ||
"type": "string", | ||
"pattern": "^[a-zA-Z]+[a-zA-Z0-9._-]*$" | ||
}, | ||
"componentType": { | ||
"title": "ComponentType", | ||
"enum": ["VIRTUAL_OBJECT", "SERVICE"] | ||
}, | ||
"handlers": { | ||
"type": "array", | ||
"items": { | ||
"type": "object", | ||
"title": "Handler", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"pattern": "^[a-zA-Z]+[a-zA-Z0-9_-]*$" | ||
}, | ||
"inputSchema": {}, | ||
"outputSchema": {} | ||
}, | ||
"required": [ "name" ], | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"required": [ "fullyQualifiedComponentName","componentType", "handlers" ], | ||
"additionalProperties": false | ||
} | ||
} | ||
}, | ||
"required": [ "minProtocolVersion", "maxProtocolVersion", "components" ], | ||
"additionalProperties": false | ||
} |