Debian Codegraph @

cli/publish-spec/test/fixtures/config.schema.json

raw symbols SCIP
1 {
2 "$schema": "https://json-schema.org/draft/2020-12/schema",
3 "title": "Config",
4 "description": "Config for publish-spec tests",
5 "type": "object",
6 "definitions": {
7 "assert:test-file": {
8 "type": "object",
9 "properties": {
10 "name": {
11 "type": "string",
12 "description": "The name of the file passed in"
13 },
14 "content": {
15 "type": "string",
16 "description": "The content of the file passed in"
17 }
18 }
19 }
20 },
21 "properties": {
22 "options": {
23 "type": "object",
24 "additionalProperties": false,
25 "properties": {
26 "token": {
27 "description": "A fig API token",
28 "type": "string"
29 },
30 "team": {
31 "description": "The name of the team",
32 "type": "string"
33 },
34 "name": {
35 "description": "The name of the spec",
36 "type": "string"
37 },
38 "specPath": {
39 "description": "The local path of the spec relative to the fixture directory",
40 "type": "string"
41 },
42 "binaryPath": {
43 "description": "The local path of the binary used to output the spec relative to the fixture directory",
44 "type": "string"
45 },
46 "subcommandName": {
47 "description": "The name of the subcommand to append to the binary when executing it",
48 "type": "string"
49 },
50 "framework": {
51 "description": "The framework used to build the CLI",
52 "type": "string"
53 }
54 }
55 },
56 "assert": {
57 "description": "A list of options to assert server side",
58 "type": "object",
59 "properties": {
60 "name": {
61 "type": "string",
62 "description": "Assert the passed in `name` is correct"
63 },
64 "team": {
65 "type": "string",
66 "description": "Assert the passed in `team` is correct"
67 },
68 "files": {
69 "type": "object",
70 "properties": {
71 "jsSpec": {
72 "$ref": "#/definitions/assert:test-file"
73 }
74 }
75 }
76 },
77 "additionalProperties": false
78 },
79 "env": {
80 "description": "Add environment variables to the context",
81 "properties": {
82 "FIG_API_TOKEN": { "type": "string", "description": "Token saved as env variable" },
83 "HOME": { "enum": ["__CWD", ""], "description": "Darwin home directory" },
84 "APPDATA": { "enum": ["__CWD", ""], "description": "Windows home directory" },
85 "XDG_DATA_HOME": { "enum": ["__CWD", ""], "description": "Linux add data directory" }
86 }
87 },
88 "os": { "description": "OS type", "enum": ["MacOS", "Linux", "Windows"] }
89 }
90 }