| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "type": "object",
- "required": [
- "cmake",
- "objects",
- "reply"
- ],
- "properties": {
- "cmake": {
- "type": "object",
- "description": "High level details about CMake itself and the CMake generator used",
- "required": [
- "version",
- "paths",
- "generator"
- ],
- "properties": {
- "version": {
- "description": "Full version details of the CMake used to produce the replies",
- "type": "object",
- "required": [
- "major",
- "minor",
- "patch",
- "string",
- "isDirty"
- ],
- "properties": {
- "major": {
- "type": "integer",
- "minimum": 3
- },
- "minor": {
- "type": "integer",
- "minimum": 0
- },
- "patch": {
- "type": "integer",
- "minimum": 0
- },
- "suffix": {
- "type": "string",
- "description": "A version suffix may be present when CMake is built from sources, or for release candidates. Official releases do not normally have a suffix."
- },
- "string": {
- "type": "string",
- "description": "The full version string in the format <major>.<minor>.<patch>[-<suffix>]"
- },
- "isDirty": {
- "type": "boolean",
- "description": "When this is true, it indicates CMake was built from a version-controlled source tree with local modifications"
- }
- },
- "additionalProperties": false
- },
- "paths": {
- "description": "Absolute paths to tools and locations within the CMake installation",
- "type": "object",
- "required": [
- "cmake",
- "ctest",
- "cpack",
- "root"
- ],
- "properties": {
- "cmake": {
- "description": "Absolute path to the cmake executable",
- "type": "string"
- },
- "ctest": {
- "description": "Absolute path to the ctest executable",
- "type": "string"
- },
- "cpack": {
- "description": "Absolute path to the cpack executable",
- "type": "string"
- },
- "root": {
- "description": "Absolute path to the directory containing CMake resources like the Modules directory",
- "type": "string"
- }
- },
- "additionalProperties": false
- },
- "generator": {
- "description": "Details for the CMake generator used",
- "type": "object",
- "required": [
- "multiConfig",
- "name"
- ],
- "properties": {
- "multiConfig": {
- "description": "True for multi-configuration generators, false for single-configuration generators",
- "type": "boolean"
- },
- "name": {
- "type": "string"
- },
- "platform": {
- "description": "This string will only be set if the generator supports the CMAKE_GENERATOR_PLATFORM variable, which specifies the generator platform name",
- "type": "string"
- }
- },
- "additionalProperties": false
- }
- }
- },
- "objects": {
- "type": "array",
- "items": {
- "$ref": "#/definitions/kindJsonFile"
- }
- },
- "reply": {
- "type": "object",
- "patternProperties": {
- "^[^-]+-v\\d+$": {
- "description": "A member of this form appears for each of the shared stateless query files that CMake recognized as a request for the specified object kind and major version",
- "oneOf": [
- {
- "$ref": "#/definitions/kindJsonFile"
- },
- {
- "description": "A member of this form appears if the query's object kind is not recognized or is malformed",
- "$ref": "#/definitions/replyError"
- }
- ]
- },
- "^client-[^/]+$": {
- "description": "A member of this form appears for each client-owned directory holding client stateless query files. The value is a JSON object mirroring the content of the query/client-<client>/ directory.",
- "patternProperties": {
- "^[^-]+-v\\d+$": {
- "description": "A member of this form appears for each of the client stateless query files that CMake recognized as a request for the specified object kind and major version",
- "oneOf": [
- {
- "$ref": "#/definitions/kindJsonFile"
- },
- {
- "description": "A member of this form appears if the client query's object kind is not recognized or is malformed",
- "$ref": "#/definitions/replyError"
- }
- ]
- },
- "^query\\.json$": {
- "description": "This member appears for clients using client stateful query files",
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "client": {
- "type": "object"
- },
- "requests": {},
- "responses": {
- "oneOf": [
- {
- "$ref": "#/definitions/replyError"
- },
- {
- "type": "array",
- "items": {
- "oneOf": [
- {
- "$ref": "#/definitions/kindJsonFile"
- },
- {
- "$ref": "#/definitions/replyError"
- }
- ]
- }
- }
- ]
- }
- },
- "additionalProperties": false
- },
- {
- "description": "A member of this form appears if the query.json file failed to read or parse as a JSON object",
- "$ref": "#/definitions/replyError"
- }
- ]
- }
- },
- "additionalProperties": {
- "description": "A member of this form appears for each of the client stateless query files that CMake did not recognize.",
- "$ref": "#/definitions/replyError"
- }
- }
- },
- "additionalProperties": {
- "description": "A member of this form appears for each of the shared stateless query files that CMake did not recognize.",
- "$ref": "#/definitions/replyError"
- }
- }
- },
- "definitions": {
- "kindJsonFile": {
- "type": "object",
- "required": [
- "kind",
- "version",
- "jsonFile"
- ],
- "properties": {
- "kind": {
- "type": "string"
- },
- "version": {
- "type": "object",
- "required": [
- "major",
- "minor"
- ],
- "properties": {
- "major": {
- "type": "integer",
- "minimum": 1
- },
- "minor": {
- "type": "integer",
- "minimum": 0
- }
- },
- "additionalProperties": false
- },
- "jsonFile": {
- "type": "string",
- "description": "Specifies a path relative to the reply index file to another JSON file containing the object"
- }
- },
- "additionalProperties": false
- },
- "replyError": {
- "type": "object",
- "required": [
- "error"
- ],
- "properties": {
- "error": {
- "type": "string"
- }
- },
- "additionalProperties": false
- }
- }
- }
|