Skip to content

Commit

Permalink
feat(json-schema): add new fields from last year
Browse files Browse the repository at this point in the history
  • Loading branch information
saerdnaer committed Dec 11, 2024
1 parent 1023b75 commit 1dc5492
Showing 1 changed file with 80 additions and 9 deletions.
89 changes: 80 additions & 9 deletions validator/json/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@
},
"end": {
"type": "string",
"format": "date"
"$oneOf": [
{ "format": "date" },
{ "format": "date-time" }
]
},
"daysCount": {
"type": "integer"
Expand Down Expand Up @@ -132,6 +135,10 @@
"name": {
"type": "string"
},
"slug": {
"type": "string",
"pattern": "^[a-z0-9_-]+[a-z0-9]$"
},
"color": {
"type": "string",
"format": "color"
Expand Down Expand Up @@ -194,14 +201,20 @@
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "integer",
"minimum": 1
},
"guid": {
"type": "string",
"format": "uuid"
},
"code": {
"type": "string",
"pattern": "^[A-Z0-9]+$"
},
"id": {
"type": "integer",
"minimum": 1,
"deprecated": true,
"$comment": "use guid instead"
},
"logo": {
"type": ["string", "null"],
"format": "uri",
Expand Down Expand Up @@ -269,7 +282,7 @@
"type": ["boolean", "null"]
},
"do_not_stream": {
"type": ["string", "null"]
"type": ["boolean", "string", "null"]
},
"persons": {
"type": "array",
Expand Down Expand Up @@ -350,6 +363,27 @@
},
"required": ["public_name", "id"]
},
"HubAssembly": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string",
"pattern": "^[a-z0-9_-]+[a-z0-9]$"
},
"guid": {
"type": "string",
"format": "uuid"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": ["name", "guid", "slug"]
},
"PretalxPerson": {
"type": "object",
"properties": {
Expand All @@ -366,7 +400,7 @@
"description": "absolute URL, or relative to base_url"
},
"biography": {
"type": "string"
"type": ["string", "null"]
},
"answers": {
"type": "array",
Expand All @@ -382,22 +416,59 @@
"name": {
"type": "string"
},
"slug": {
"type": "string",
"pattern": "^[a-z0-9_-]+[a-z0-9]$"
},
"type": {
"type": "string",
"enum": ["lecturehall", "stage", "workshop", "outside", "online", "project", "bbb", "hangar", "other"]
},
"guid": {
"type": "string",
"format": "uuid"
},
"description": {
"stream_id": {
"type": ["string", "null"]
},
"description": {
"type": ["string", "null"],
"description": "might also be set as description_de, description_en etc."
},
"capacity": {
"type": ["number", "null"]
},
"url": {
"type": "string",
"format": "uri"
},
"features" :{
"$ref": "#/definitions/RoomFeatures"
},
"assembly": {
"$ref": "#/definitions/HubAssembly"
}
},
"required": ["name"]
"patternProperties": {
"description_.+": {
"type": ["string", "null"]
}
},
"required": ["name", "guid"]
},
"RoomName": {
"type": "string"
},
"RoomFeatures": {
"type": "object",
"additionalProperties": true,
"properties": {
"recording": {
"type": "string",
"enum": ["record_by_default", "not_recorded_by_default", "recording_forbidden", "recording_not_possible", "unknown"]
}
}
},
"Duration": {
"title": "Duration (hh:mm)",
"type": "string",
Expand Down

0 comments on commit 1dc5492

Please sign in to comment.