-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add schema version 3.5 to allow for sprite sheets and takxconfig.json…
… files (#19)
- Loading branch information
Showing
8 changed files
with
3,569 additions
and
1,444 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,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 | ||
} | ||
|
Oops, something went wrong.