summaryrefslogtreecommitdiff
path: root/Homework/cs5260/shared/schema/WidgetRequest.json
diff options
context:
space:
mode:
authorElizabeth Alexander Hunt <me@liz.coffee>2026-07-02 11:55:17 -0700
committerElizabeth Alexander Hunt <me@liz.coffee>2026-07-02 11:55:17 -0700
commit6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6 (patch)
treeed97e39ec77c5231ffd2c394493e68d00ddac5a4 /Homework/cs5260/shared/schema/WidgetRequest.json
downloadmisc-undergrad-6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6.tar.gz
misc-undergrad-6bf4b90c90f15f4ab60833bddf5b5756d1a6b1f6.zip
Diffstat (limited to 'Homework/cs5260/shared/schema/WidgetRequest.json')
-rw-r--r--Homework/cs5260/shared/schema/WidgetRequest.json44
1 files changed, 44 insertions, 0 deletions
diff --git a/Homework/cs5260/shared/schema/WidgetRequest.json b/Homework/cs5260/shared/schema/WidgetRequest.json
new file mode 100644
index 0000000..a378949
--- /dev/null
+++ b/Homework/cs5260/shared/schema/WidgetRequest.json
@@ -0,0 +1,44 @@
+{
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "type": {
+ "type": "string",
+ "pattern": "create|delete|update"
+ },
+ "requestId": {
+ "type": "string"
+ },
+ "widgetId": {
+ "type": "string"
+ },
+ "owner": {
+ "type": "string",
+ "pattern": "[A-Za-z ]+"
+ },
+ "label": {
+ "type": "string"
+ },
+ "description": {
+ "type": "string"
+ },
+ "otherAttributes": {
+ "type": "array",
+ "items": [
+ {
+ "type": "object",
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": ["name", "value"]
+ }
+ ]
+ }
+ },
+ "required": ["type", "requestId", "widgetId", "owner"]
+}