UNPKG

2.34 kBJSONView Raw
1{
2 "$schema": "http://json-schema.org/draft-04/schema#",
3 "id": "/",
4 "type": "object",
5 "title": "Global configuration for the dazzling fiction dialect",
6 "description": "Configuration of curies and default values for the fict command",
7 "name": "/",
8 "properties": {
9 "outputFormat": {
10 "id": "outputFormat",
11 "type": "string",
12 "minLength": 1,
13 "title": "The output format for the fiction command",
14 "description": "The output format should be either csv or json",
15 "name": "outputFormat",
16 "enum": [
17 "json",
18 "csv"
19 ]
20 },
21 "curies": {
22 "id": "curies",
23 "type": "array",
24 "title": "The curies for the fiction command",
25 "description": "The curies help to create a mapping between a real world url and a logic name",
26 "name": "curies",
27 "items": {
28 "id": "0",
29 "type": "object",
30 "title": "Curie definition",
31 "description": "Description of rules for a specific curie",
32 "name": "0",
33 "properties": {
34 "startsWith": {
35 "id": "startsWith",
36 "type": "string",
37 "minLength": 1,
38 "title": "Expected start string",
39 "description": "When the start string is found the rules will apply",
40 "name": "startsWith"
41 },
42 "prefix": {
43 "id": "prefix",
44 "type": "string",
45 "minLength": 1,
46 "title": "Prefix to apply to uri",
47 "description": "Prefix that will be concatenated if the rule is triggered",
48 "name": "prefix"
49 },
50 "suffix": {
51 "id": "suffix",
52 "type": "string",
53 "minLength": 1,
54 "title": "Suffix to apply to uri",
55 "description": "Suffix that will be concatenated if the rule is triggered",
56 "name": "suffix"
57 },
58 "contentType": {
59 "id": "contentType",
60 "type": "string",
61 "minLength": 1,
62 "title": "Content type returned by service",
63 "description": "Content type which should be provided by the web service",
64 "name": "contentType",
65 "enum": [
66 "application/json",
67 "text/plain"
68 ]
69 }
70 }
71 }
72 }
73 }
74}
\No newline at end of file