Skip to content

Commit

Permalink
Add schema version 3.5 to allow for sprite sheets and takxconfig.json…
Browse files Browse the repository at this point in the history
… files (#19)
  • Loading branch information
bbowman authored Oct 19, 2022
1 parent 4a24f61 commit ec4b92a
Show file tree
Hide file tree
Showing 8 changed files with 3,569 additions and 1,444 deletions.
89 changes: 89 additions & 0 deletions touch-adaptation-kit/schemas/context/v3.5/context.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"$id": "https://raw.githubusercontent.com/microsoft/xbox-game-streaming-tools/main/touch-adaptation-kit/schemas/context/v3.5/context.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "JSON Schema for Touch Adaptation Bundle Context File",
"definitions": {
"ContextDefinableType": {
"description": "Set of types which can be used in the definitions section of a context file.",
"anyOf": [
{
"$ref": "../../layout/v3.5/layout.json#/definitions/LayoutDefinableType"
},
{
"$ref": "#/definitions/StateType"
},
{
"type": "array",
"items": {
"$ref": "#/definitions/StateType"
}
}
]
},
"StateType": {
"description": "Set of types which can be used for state values",
"anyOf": [
{
"type": "string"
},
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "number"
}
]
}
},
"type": "object",
"properties": {
"$schema": {
"type": "string"
},
"definitions": {
"type": "object",
"description": "Definitions block that contains reusable components for layouts.",
"patternProperties": {
"^(?!__proto__)[a-zA-Z0-9\\.\\-_]+$": {
"$ref": "#/definitions/ContextDefinableType"
}
},
"additionalProperties": false
},
"state": {
"type": "object",
"description": "State block that contains the global state that forms a shared context that other layouts can reference.",
"patternProperties": {
"^(?!__proto__)[a-zA-Z0-9\\.\\-_]+$": {
"$ref": "#/definitions/StateType"
}
},
"additionalProperties": false
},
"allowedStateValues": {
"type": "object",
"description": "AllowedStateValues block which contains allowed state values for a given state, such as allowed asset names for a given asset",
"patternProperties": {
"^(?!__proto__)[a-zA-Z0-9\\.\\-_]+$": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/StateType"
}
},
{
"$ref": "../../layout/v3.5/layout.json#/definitions/Reference"
}
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}

Loading

0 comments on commit ec4b92a

Please sign in to comment.