-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
94 lines (94 loc) · 3.25 KB
/
schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "JSON schema for graphql-to-karate (https://github.com/wbaldoumas/graphql-to-karate)",
"description": "A JSON schema for the graphql-to-karate configuration file",
"properties": {
"outputFile": {
"type": "string",
"title": "Output File",
"description": "The output file to write the Karate feature to",
"default": "graphql.feature"
},
"queryName": {
"type": "string",
"title": "Query Name",
"description": "The name of the GraphQL query type",
"default": "Query"
},
"mutationName": {
"type": "string",
"title": "Mutation Name",
"description": "The name of the GraphQL mutation type",
"default": "Mutation"
},
"excludeQueries": {
"type": "boolean",
"title": "Exclude Queries",
"description": "Whether to exclude queries from the Karate feature or not",
"default": false
},
"includeMutations": {
"type": "boolean",
"title": "Include Mutations",
"description": "Whether to include mutations in the Karate feature or not",
"default": false
},
"baseUrl": {
"type": "string",
"title": "Base URL",
"description": "The base URL to be used in the Karate feature",
"default": "\"https://your-awesome-api.com\""
},
"customScalarMapping": {
"type": "object",
"title": "Custom Scalar Mapping",
"description": "A mapping of custom scalar types to their equivalent Karate types",
"default": {},
"additionalProperties": {
"type": "string"
},
"examples": [
{
"DateTime": "string",
"Long": "number",
"BigDecimal": "number",
"UUID": "string"
}
]
},
"typeFilter": {
"type": "array",
"title": "Type Filter",
"description": "A list of types to include in the Karate feature. If empty, all types will be included",
"default": [],
"items": [
{
"type": "string"
}
]
},
"queryOperationFilter": {
"type": "array",
"title": "Query Operation Filter",
"description": "A list of query operations to include in the Karate feature. If empty, all query operations will be included",
"default": [],
"items": [
{
"type": "string"
}
]
},
"mutationOperationFilter": {
"type": "array",
"title": "Mutation Operation Filter",
"description": "A list of mutation operations to include in the Karate feature. If empty, all mutation operations will be included",
"default": [],
"items": [
{
"type": "string"
}
]
}
}
}