@intentius/chant-lexicon-grafana 0.96.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/README.md +50 -0
  2. package/dist/build.d.ts +116 -0
  3. package/dist/build.d.ts.map +1 -0
  4. package/dist/catalog.d.ts +26 -0
  5. package/dist/catalog.d.ts.map +1 -0
  6. package/dist/codegen/docs-cli.d.ts +3 -0
  7. package/dist/codegen/docs-cli.d.ts.map +1 -0
  8. package/dist/codegen/docs.d.ts +8 -0
  9. package/dist/codegen/docs.d.ts.map +1 -0
  10. package/dist/codegen/generate-cli.d.ts +3 -0
  11. package/dist/codegen/generate-cli.d.ts.map +1 -0
  12. package/dist/codegen/generate.d.ts +21 -0
  13. package/dist/codegen/generate.d.ts.map +1 -0
  14. package/dist/codegen/package.d.ts +7 -0
  15. package/dist/codegen/package.d.ts.map +1 -0
  16. package/dist/codegen/schema-types.d.ts +41 -0
  17. package/dist/codegen/schema-types.d.ts.map +1 -0
  18. package/dist/composites/agent-dashboard.d.ts +70 -0
  19. package/dist/composites/agent-dashboard.d.ts.map +1 -0
  20. package/dist/composites/catalog.d.ts +3 -0
  21. package/dist/composites/catalog.d.ts.map +1 -0
  22. package/dist/composites/index.d.ts +12 -0
  23. package/dist/composites/index.d.ts.map +1 -0
  24. package/dist/composites/red-dashboard.d.ts +58 -0
  25. package/dist/composites/red-dashboard.d.ts.map +1 -0
  26. package/dist/composites/shared.d.ts +68 -0
  27. package/dist/composites/shared.d.ts.map +1 -0
  28. package/dist/composites/slo-dashboard.d.ts +62 -0
  29. package/dist/composites/slo-dashboard.d.ts.map +1 -0
  30. package/dist/dashboard.d.ts +84 -0
  31. package/dist/dashboard.d.ts.map +1 -0
  32. package/dist/datasource.d.ts +67 -0
  33. package/dist/datasource.d.ts.map +1 -0
  34. package/dist/detect.d.ts +20 -0
  35. package/dist/detect.d.ts.map +1 -0
  36. package/dist/index.d.ts +17 -0
  37. package/dist/index.d.ts.map +1 -0
  38. package/dist/integrity.json +22 -0
  39. package/dist/lint/audit-catalog.d.ts +13 -0
  40. package/dist/lint/audit-catalog.d.ts.map +1 -0
  41. package/dist/lint/post-synth/graf101.d.ts +8 -0
  42. package/dist/lint/post-synth/graf101.d.ts.map +1 -0
  43. package/dist/lint/post-synth/graf102.d.ts +8 -0
  44. package/dist/lint/post-synth/graf102.d.ts.map +1 -0
  45. package/dist/lint/post-synth/graf103.d.ts +8 -0
  46. package/dist/lint/post-synth/graf103.d.ts.map +1 -0
  47. package/dist/lint/post-synth/graf104.d.ts +8 -0
  48. package/dist/lint/post-synth/graf104.d.ts.map +1 -0
  49. package/dist/lint/post-synth/graf105.d.ts +8 -0
  50. package/dist/lint/post-synth/graf105.d.ts.map +1 -0
  51. package/dist/lint/post-synth/graf106.d.ts +8 -0
  52. package/dist/lint/post-synth/graf106.d.ts.map +1 -0
  53. package/dist/lint/post-synth/graf107.d.ts +8 -0
  54. package/dist/lint/post-synth/graf107.d.ts.map +1 -0
  55. package/dist/lint/post-synth/grafana-helpers.d.ts +16 -0
  56. package/dist/lint/post-synth/grafana-helpers.d.ts.map +1 -0
  57. package/dist/lint/post-synth/index.d.ts +3 -0
  58. package/dist/lint/post-synth/index.d.ts.map +1 -0
  59. package/dist/lint/rules/grafana-ast.d.ts +21 -0
  60. package/dist/lint/rules/grafana-ast.d.ts.map +1 -0
  61. package/dist/lint/rules/index.d.ts +6 -0
  62. package/dist/lint/rules/index.d.ts.map +1 -0
  63. package/dist/lint/rules/literal-secret.d.ts +12 -0
  64. package/dist/lint/rules/literal-secret.d.ts.map +1 -0
  65. package/dist/lint/rules/uid-syntax.d.ts +12 -0
  66. package/dist/lint/rules/uid-syntax.d.ts.map +1 -0
  67. package/dist/lsp/completions.d.ts +4 -0
  68. package/dist/lsp/completions.d.ts.map +1 -0
  69. package/dist/lsp/hover.d.ts +4 -0
  70. package/dist/lsp/hover.d.ts.map +1 -0
  71. package/dist/manifest.json +8 -0
  72. package/dist/meta.json +107 -0
  73. package/dist/okf/index.md +39 -0
  74. package/dist/okf/rules/GRAF001.md +16 -0
  75. package/dist/okf/rules/GRAF002.md +15 -0
  76. package/dist/okf/rules/GRAF101.md +15 -0
  77. package/dist/okf/rules/GRAF102.md +15 -0
  78. package/dist/okf/rules/GRAF103.md +11 -0
  79. package/dist/okf/rules/GRAF104.md +15 -0
  80. package/dist/okf/rules/GRAF105.md +11 -0
  81. package/dist/okf/rules/GRAF106.md +11 -0
  82. package/dist/okf/rules/GRAF107.md +11 -0
  83. package/dist/okf/types/ConstantVariable.md +9 -0
  84. package/dist/okf/types/CustomVariable.md +9 -0
  85. package/dist/okf/types/Dashboard.md +14 -0
  86. package/dist/okf/types/DashboardProvider.md +9 -0
  87. package/dist/okf/types/Datasource.md +16 -0
  88. package/dist/okf/types/DatasourceVariable.md +9 -0
  89. package/dist/okf/types/GaugePanel.md +9 -0
  90. package/dist/okf/types/HeatmapPanel.md +9 -0
  91. package/dist/okf/types/IntervalVariable.md +9 -0
  92. package/dist/okf/types/LogsPanel.md +9 -0
  93. package/dist/okf/types/LokiQuery.md +9 -0
  94. package/dist/okf/types/PromQuery.md +9 -0
  95. package/dist/okf/types/QueryVariable.md +9 -0
  96. package/dist/okf/types/Row.md +9 -0
  97. package/dist/okf/types/StatPanel.md +9 -0
  98. package/dist/okf/types/TablePanel.md +9 -0
  99. package/dist/okf/types/TempoQuery.md +9 -0
  100. package/dist/okf/types/TextPanel.md +9 -0
  101. package/dist/okf/types/TextboxVariable.md +9 -0
  102. package/dist/okf/types/TimeSeriesPanel.md +9 -0
  103. package/dist/okf/types/TracesPanel.md +9 -0
  104. package/dist/package-cli.d.ts +3 -0
  105. package/dist/package-cli.d.ts.map +1 -0
  106. package/dist/panels.d.ts +138 -0
  107. package/dist/panels.d.ts.map +1 -0
  108. package/dist/pin.d.ts +32 -0
  109. package/dist/pin.d.ts.map +1 -0
  110. package/dist/plugin.d.ts +12 -0
  111. package/dist/plugin.d.ts.map +1 -0
  112. package/dist/query.d.ts +81 -0
  113. package/dist/query.d.ts.map +1 -0
  114. package/dist/rules/graf101.ts +17 -0
  115. package/dist/rules/graf102.ts +17 -0
  116. package/dist/rules/graf103.ts +17 -0
  117. package/dist/rules/graf104.ts +17 -0
  118. package/dist/rules/graf105.ts +17 -0
  119. package/dist/rules/graf106.ts +17 -0
  120. package/dist/rules/graf107.ts +17 -0
  121. package/dist/rules/grafana-ast.ts +70 -0
  122. package/dist/rules/grafana-helpers.ts +68 -0
  123. package/dist/rules/literal-secret.ts +48 -0
  124. package/dist/rules/uid-syntax.ts +56 -0
  125. package/dist/schema/dashboard.gen.d.ts +1231 -0
  126. package/dist/schema/dashboard.gen.d.ts.map +1 -0
  127. package/dist/schema/gauge.gen.d.ts +57 -0
  128. package/dist/schema/gauge.gen.d.ts.map +1 -0
  129. package/dist/schema/heatmap.gen.d.ts +295 -0
  130. package/dist/schema/heatmap.gen.d.ts.map +1 -0
  131. package/dist/schema/index.d.ts +18 -0
  132. package/dist/schema/index.d.ts.map +1 -0
  133. package/dist/schema/logs.gen.d.ts +29 -0
  134. package/dist/schema/logs.gen.d.ts.map +1 -0
  135. package/dist/schema/loki.gen.d.ts +69 -0
  136. package/dist/schema/loki.gen.d.ts.map +1 -0
  137. package/dist/schema/prometheus.gen.d.ts +169 -0
  138. package/dist/schema/prometheus.gen.d.ts.map +1 -0
  139. package/dist/schema/stat.gen.d.ts +75 -0
  140. package/dist/schema/stat.gen.d.ts.map +1 -0
  141. package/dist/schema/table.gen.d.ts +295 -0
  142. package/dist/schema/table.gen.d.ts.map +1 -0
  143. package/dist/schema/tempo.gen.d.ts +136 -0
  144. package/dist/schema/tempo.gen.d.ts.map +1 -0
  145. package/dist/schema/text.gen.d.ts +16 -0
  146. package/dist/schema/text.gen.d.ts.map +1 -0
  147. package/dist/schema/timeseries.gen.d.ts +179 -0
  148. package/dist/schema/timeseries.gen.d.ts.map +1 -0
  149. package/dist/schema-validate.d.ts +20 -0
  150. package/dist/schema-validate.d.ts.map +1 -0
  151. package/dist/serializer.d.ts +22 -0
  152. package/dist/serializer.d.ts.map +1 -0
  153. package/dist/skill-defs.d.ts +3 -0
  154. package/dist/skill-defs.d.ts.map +1 -0
  155. package/dist/skills/chant-grafana-provisioning.md +42 -0
  156. package/dist/skills/chant-grafana.md +93 -0
  157. package/dist/spec/fetch-cli.d.ts +3 -0
  158. package/dist/spec/fetch-cli.d.ts.map +1 -0
  159. package/dist/spec/schemas.d.ts +25 -0
  160. package/dist/spec/schemas.d.ts.map +1 -0
  161. package/dist/types/index.d.ts +3 -0
  162. package/dist/util.d.ts +17 -0
  163. package/dist/util.d.ts.map +1 -0
  164. package/dist/validate-cli.d.ts +3 -0
  165. package/dist/validate-cli.d.ts.map +1 -0
  166. package/dist/validate-output.d.ts +42 -0
  167. package/dist/validate-output.d.ts.map +1 -0
  168. package/dist/validate.d.ts +12 -0
  169. package/dist/validate.d.ts.map +1 -0
  170. package/dist/variables.d.ts +100 -0
  171. package/dist/variables.d.ts.map +1 -0
  172. package/package.json +79 -0
  173. package/src/build.test.ts +210 -0
  174. package/src/build.ts +573 -0
  175. package/src/catalog.ts +116 -0
  176. package/src/codegen/docs-cli.ts +4 -0
  177. package/src/codegen/docs.ts +97 -0
  178. package/src/codegen/generate-cli.ts +8 -0
  179. package/src/codegen/generate.ts +83 -0
  180. package/src/codegen/package.ts +41 -0
  181. package/src/codegen/schema-types.ts +173 -0
  182. package/src/composites/agent-dashboard.ts +235 -0
  183. package/src/composites/catalog.test.ts +37 -0
  184. package/src/composites/catalog.ts +223 -0
  185. package/src/composites/composites.test.ts +314 -0
  186. package/src/composites/index.ts +12 -0
  187. package/src/composites/red-dashboard.ts +159 -0
  188. package/src/composites/shared.ts +94 -0
  189. package/src/composites/slo-dashboard.ts +177 -0
  190. package/src/dashboard.ts +123 -0
  191. package/src/datasource.ts +93 -0
  192. package/src/detect.ts +30 -0
  193. package/src/generated/lexicon-grafana.json +107 -0
  194. package/src/import.e2e.test.ts +147 -0
  195. package/src/import.test.ts +45 -0
  196. package/src/index.ts +178 -0
  197. package/src/lint/audit-catalog.ts +87 -0
  198. package/src/lint/post-synth/graf101.ts +17 -0
  199. package/src/lint/post-synth/graf102.ts +17 -0
  200. package/src/lint/post-synth/graf103.ts +17 -0
  201. package/src/lint/post-synth/graf104.ts +17 -0
  202. package/src/lint/post-synth/graf105.ts +17 -0
  203. package/src/lint/post-synth/graf106.ts +17 -0
  204. package/src/lint/post-synth/graf107.ts +17 -0
  205. package/src/lint/post-synth/grafana-helpers.ts +68 -0
  206. package/src/lint/post-synth/index.ts +19 -0
  207. package/src/lint/post-synth/post-synth.test.ts +231 -0
  208. package/src/lint/rules/grafana-ast.ts +70 -0
  209. package/src/lint/rules/index.ts +9 -0
  210. package/src/lint/rules/literal-secret.ts +48 -0
  211. package/src/lint/rules/rules.test.ts +70 -0
  212. package/src/lint/rules/uid-syntax.ts +56 -0
  213. package/src/lsp/completions.test.ts +31 -0
  214. package/src/lsp/completions.ts +15 -0
  215. package/src/lsp/hover.test.ts +25 -0
  216. package/src/lsp/hover.ts +28 -0
  217. package/src/package-cli.ts +17 -0
  218. package/src/panels.ts +275 -0
  219. package/src/pin.ts +68 -0
  220. package/src/plugin.test.ts +50 -0
  221. package/src/plugin.ts +116 -0
  222. package/src/query.ts +160 -0
  223. package/src/schema/dashboard.gen.ts +1289 -0
  224. package/src/schema/gauge.gen.ts +64 -0
  225. package/src/schema/heatmap.gen.ts +321 -0
  226. package/src/schema/index.ts +17 -0
  227. package/src/schema/logs.gen.ts +34 -0
  228. package/src/schema/loki.gen.ts +77 -0
  229. package/src/schema/prometheus.gen.ts +181 -0
  230. package/src/schema/stat.gen.ts +86 -0
  231. package/src/schema/table.gen.ts +334 -0
  232. package/src/schema/tempo.gen.ts +146 -0
  233. package/src/schema/text.gen.ts +22 -0
  234. package/src/schema/timeseries.gen.ts +208 -0
  235. package/src/schema-validate.ts +143 -0
  236. package/src/schema.test.ts +76 -0
  237. package/src/serializer.test.ts +170 -0
  238. package/src/serializer.ts +37 -0
  239. package/src/skill-defs.ts +31 -0
  240. package/src/skills/chant-grafana-provisioning.md +42 -0
  241. package/src/skills/chant-grafana.md +93 -0
  242. package/src/spec/fetch-cli.ts +27 -0
  243. package/src/spec/schemas/dashboard.jsonschema.json +1901 -0
  244. package/src/spec/schemas/gauge.jsonschema.json +114 -0
  245. package/src/spec/schemas/heatmap.jsonschema.json +480 -0
  246. package/src/spec/schemas/logs.jsonschema.json +94 -0
  247. package/src/spec/schemas/loki.jsonschema.json +118 -0
  248. package/src/spec/schemas/prometheus.jsonschema.json +276 -0
  249. package/src/spec/schemas/stat.jsonschema.json +163 -0
  250. package/src/spec/schemas/table.jsonschema.json +751 -0
  251. package/src/spec/schemas/tempo.jsonschema.json +225 -0
  252. package/src/spec/schemas/text.jsonschema.json +72 -0
  253. package/src/spec/schemas/timeseries.jsonschema.json +471 -0
  254. package/src/spec/schemas.ts +56 -0
  255. package/src/util.ts +43 -0
  256. package/src/validate-cli.ts +7 -0
  257. package/src/validate-output.ts +380 -0
  258. package/src/validate.ts +108 -0
  259. package/src/variables.ts +161 -0
@@ -0,0 +1,225 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$ref": "#/definitions/Dataquery",
4
+ "definitions": {
5
+ "Dataquery": {
6
+ "type": "object",
7
+ "additionalProperties": false,
8
+ "required": [
9
+ "filters"
10
+ ],
11
+ "properties": {
12
+ "refId": {
13
+ "anyOf": [
14
+ {
15
+ "type": "string"
16
+ },
17
+ {
18
+ "type": "null"
19
+ }
20
+ ],
21
+ "description": "A unique identifier for the query within the list of targets.\nIn server side expressions, the refId is used as a variable name to identify results.\nBy default, the UI will assign A-\u003eZ; however setting meaningful names may be useful."
22
+ },
23
+ "hide": {
24
+ "type": "boolean",
25
+ "description": "If hide is set to true, Grafana will filter out the response(s) associated with this query before returning it to the panel."
26
+ },
27
+ "queryType": {
28
+ "type": "string",
29
+ "description": "Specify the query flavor\nTODO make this required and give it a default"
30
+ },
31
+ "query": {
32
+ "type": "string",
33
+ "description": "TraceQL query or trace ID"
34
+ },
35
+ "search": {
36
+ "type": "string",
37
+ "description": "@deprecated Logfmt query to filter traces by their tags. Example: http.status_code=200 error=true"
38
+ },
39
+ "serviceName": {
40
+ "type": "string",
41
+ "description": "@deprecated Query traces by service name"
42
+ },
43
+ "spanName": {
44
+ "type": "string",
45
+ "description": "@deprecated Query traces by span name"
46
+ },
47
+ "minDuration": {
48
+ "type": "string",
49
+ "description": "@deprecated Define the minimum duration to select traces. Use duration format, for example: 1.2s, 100ms"
50
+ },
51
+ "maxDuration": {
52
+ "type": "string",
53
+ "description": "@deprecated Define the maximum duration to select traces. Use duration format, for example: 1.2s, 100ms"
54
+ },
55
+ "serviceMapQuery": {
56
+ "oneOf": [
57
+ {
58
+ "type": "string"
59
+ },
60
+ {
61
+ "type": "array",
62
+ "items": {
63
+ "type": "string"
64
+ }
65
+ }
66
+ ],
67
+ "description": "Filters to be included in a PromQL query to select data for the service graph. Example: {client=\"app\",service=\"app\"}. Providing multiple values will produce union of results for each filter, using PromQL OR operator internally."
68
+ },
69
+ "serviceMapIncludeNamespace": {
70
+ "type": "boolean",
71
+ "description": "Use service.namespace in addition to service.name to uniquely identify a service."
72
+ },
73
+ "limit": {
74
+ "type": "integer",
75
+ "description": "Defines the maximum number of traces that are returned from Tempo"
76
+ },
77
+ "spss": {
78
+ "type": "integer",
79
+ "description": "Defines the maximum number of spans per spanset that are returned from Tempo"
80
+ },
81
+ "filters": {
82
+ "type": "array",
83
+ "items": {
84
+ "$ref": "#/definitions/TraceqlFilter"
85
+ }
86
+ },
87
+ "groupBy": {
88
+ "type": "array",
89
+ "items": {
90
+ "$ref": "#/definitions/TraceqlFilter"
91
+ },
92
+ "description": "Filters that are used to query the metrics summary"
93
+ },
94
+ "tableType": {
95
+ "$ref": "#/definitions/SearchTableType",
96
+ "description": "The type of the table that is used to display the search results"
97
+ },
98
+ "step": {
99
+ "type": "string",
100
+ "description": "For metric queries, the step size to use"
101
+ },
102
+ "exemplars": {
103
+ "type": "integer",
104
+ "description": "For metric queries, how many exemplars to request, 0 means no exemplars"
105
+ },
106
+ "datasource": {
107
+ "$ref": "#/definitions/DataSourceRef",
108
+ "description": "For mixed data sources the selected datasource is on the query level.\nFor non mixed scenarios this is undefined.\nTODO find a better way to do this ^ that's friendly to schema\nTODO this shouldn't be unknown but DataSourceRef | null"
109
+ },
110
+ "metricsQueryType": {
111
+ "$ref": "#/definitions/MetricsQueryType",
112
+ "description": "For metric queries, whether to run instant or range queries"
113
+ }
114
+ }
115
+ },
116
+ "TraceqlFilter": {
117
+ "type": "object",
118
+ "additionalProperties": false,
119
+ "required": [
120
+ "id"
121
+ ],
122
+ "properties": {
123
+ "id": {
124
+ "type": "string",
125
+ "description": "Uniquely identify the filter, will not be used in the query generation"
126
+ },
127
+ "tag": {
128
+ "type": "string",
129
+ "description": "The tag for the search filter, for example: .http.status_code, .service.name, status"
130
+ },
131
+ "operator": {
132
+ "type": "string",
133
+ "description": "The operator that connects the tag to the value, for example: =, \u003e, !=, =~"
134
+ },
135
+ "value": {
136
+ "oneOf": [
137
+ {
138
+ "type": "string"
139
+ },
140
+ {
141
+ "type": "array",
142
+ "items": {
143
+ "type": "string"
144
+ }
145
+ }
146
+ ],
147
+ "description": "The value for the search filter"
148
+ },
149
+ "valueType": {
150
+ "type": "string",
151
+ "description": "The type of the value, used for example to check whether we need to wrap the value in quotes when generating the query"
152
+ },
153
+ "scope": {
154
+ "$ref": "#/definitions/TraceqlSearchScope",
155
+ "description": "The scope of the filter, can either be unscoped/all scopes, resource or span"
156
+ }
157
+ }
158
+ },
159
+ "TraceqlSearchScope": {
160
+ "enum": [
161
+ "intrinsic",
162
+ "unscoped",
163
+ "event",
164
+ "instrumentation",
165
+ "link",
166
+ "resource",
167
+ "span"
168
+ ],
169
+ "type": "string",
170
+ "description": "static fields are pre-set in the UI, dynamic fields are added by the user"
171
+ },
172
+ "SearchTableType": {
173
+ "enum": [
174
+ "traces",
175
+ "spans",
176
+ "raw"
177
+ ],
178
+ "type": "string",
179
+ "description": "The type of the table that is used to display the search results"
180
+ },
181
+ "MetricsQueryType": {
182
+ "enum": [
183
+ "range",
184
+ "instant"
185
+ ],
186
+ "type": "string"
187
+ },
188
+ "TempoQueryType": {
189
+ "enum": [
190
+ "traceql",
191
+ "traceqlSearch",
192
+ "serviceMap",
193
+ "upload",
194
+ "nativeSearch",
195
+ "traceId",
196
+ "clear"
197
+ ],
198
+ "type": "string"
199
+ },
200
+ "SearchStreamingState": {
201
+ "enum": [
202
+ "pending",
203
+ "streaming",
204
+ "done",
205
+ "error"
206
+ ],
207
+ "type": "string",
208
+ "description": "The state of the TraceQL streaming search query"
209
+ },
210
+ "DataSourceRef": {
211
+ "type": "object",
212
+ "additionalProperties": false,
213
+ "properties": {
214
+ "type": {
215
+ "type": "string",
216
+ "description": "The plugin type-id"
217
+ },
218
+ "uid": {
219
+ "type": "string",
220
+ "description": "Specific datasource instance"
221
+ }
222
+ }
223
+ }
224
+ }
225
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "definitions": {
4
+ "TextMode": {
5
+ "enum": [
6
+ "html",
7
+ "markdown",
8
+ "code"
9
+ ],
10
+ "type": "string"
11
+ },
12
+ "CodeLanguage": {
13
+ "enum": [
14
+ "json",
15
+ "yaml",
16
+ "xml",
17
+ "typescript",
18
+ "sql",
19
+ "go",
20
+ "markdown",
21
+ "html",
22
+ "plaintext"
23
+ ],
24
+ "type": "string"
25
+ },
26
+ "CodeOptions": {
27
+ "type": "object",
28
+ "additionalProperties": false,
29
+ "required": [
30
+ "language",
31
+ "showLineNumbers",
32
+ "showMiniMap"
33
+ ],
34
+ "properties": {
35
+ "language": {
36
+ "$ref": "#/definitions/CodeLanguage",
37
+ "description": "The language passed to monaco code editor",
38
+ "default": "plaintext"
39
+ },
40
+ "showLineNumbers": {
41
+ "type": "boolean",
42
+ "default": false
43
+ },
44
+ "showMiniMap": {
45
+ "type": "boolean",
46
+ "default": false
47
+ }
48
+ }
49
+ },
50
+ "Options": {
51
+ "type": "object",
52
+ "additionalProperties": false,
53
+ "required": [
54
+ "mode",
55
+ "content"
56
+ ],
57
+ "properties": {
58
+ "mode": {
59
+ "$ref": "#/definitions/TextMode",
60
+ "default": "markdown"
61
+ },
62
+ "code": {
63
+ "$ref": "#/definitions/CodeOptions"
64
+ },
65
+ "content": {
66
+ "type": "string",
67
+ "default": "# Title\n\nFor markdown syntax help: [commonmark.org/help](https://commonmark.org/help/)"
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }