Skip to content

Commit

Permalink
Schema updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcope committed Jan 25, 2024
1 parent e1c17c5 commit 1d6d0b7
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
8 changes: 8 additions & 0 deletions source/client/schema/json/meta.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@
"uris": {
"description": "Location of the audio resource, absolute URL or path relative to this document with language key",
"type": "object"
},
"captionUris": {
"description": "Location of the caption resource, absolute URL or path relative to this document with language key",
"type": "object"
},
"durations": {
"description": "Length of the audio resource with language key",
"type": "object"
}
},
"required": [
Expand Down
43 changes: 43 additions & 0 deletions source/client/schema/json/setup.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,21 @@
"exposure": {
"type": "number"
},
"toneMapping": {
"type": "boolean"
},
"gamma": {
"type": "number"
},
"annotationsVisible": {
"type": "boolean"
},
"isWallMountAR": {
"type": "boolean"
},
"arScale": {
"type": "number"
},
"activeTags": {
"type": "string"
},
Expand Down Expand Up @@ -85,6 +94,12 @@
"autoZoom": {
"type": "boolean"
},
"autoRotation": {
"type": "boolean"
},
"lightsFollowCamera": {
"type": "boolean"
},
"orbit": {
"$comment": "TODO: Implement",

Expand Down Expand Up @@ -188,6 +203,28 @@
},
"position": {
"type": "number"
},
"color": {
"$ref": "./common.schema.json#/definitions/vector3"
}
}
},
"audio": {
"type": "object",
"properties": {
"narrationId": {
"type": "string"
}
}
},
"language": {
"type": "object",
"properties": {
"language": {
"type": "string",
"enum": [
"EN", "ES", "DE", "NL", "JA", "FR", "HAW"
]
}
}
},
Expand Down Expand Up @@ -303,6 +340,12 @@
},
"tours": {
"$ref": "#/definitions/tours"
},
"language": {
"$ref": "#/definitions/language"
},
"audio": {
"$ref": "#/definitions/audio"
}
}
}
1 change: 1 addition & 0 deletions source/client/schema/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface ISetup
slicer?: ISlicer;
tours?: ITours;
snapshots?: ISnapshots;
audio?: IAudio;
}

export interface IInterface
Expand Down

0 comments on commit 1d6d0b7

Please sign in to comment.