Skip to content

Commit 1e53d8d

Browse files
committed
placeholder schema for quarto dev options in front matter
1 parent 261e514 commit 1e53d8d

File tree

6 files changed

+75
-9
lines changed

6 files changed

+75
-9
lines changed

src/core/lib/yaml-schema/front-matter.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import {
1414
anyOfSchema as anyOfS,
1515
completeSchema,
1616
describeSchema,
17-
enumSchema,
1817
objectSchema as objectS,
18+
refSchema,
1919
regexSchema as regexS,
2020
} from "./common.ts";
2121

@@ -155,6 +155,7 @@ export const getFrontMatterSchema = defineCached(
155155
(field: SchemaField) => field.name !== "format",
156156
),
157157
executeObjSchema,
158+
refSchema("quarto-dev-schema", ""),
158159
),
159160
),
160161
errorHandlers: [],

src/resources/editor/tools/vs-code.mjs

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10936,6 +10936,23 @@ var require_yaml_intelligence_resources = __commonJS({
1093610936
}
1093710937
}
1093810938
}
10939+
},
10940+
{
10941+
id: "quarto-dev-schema",
10942+
schema: {
10943+
object: {
10944+
properties: {
10945+
_quarto: {
10946+
hidden: true,
10947+
object: {
10948+
properties: {
10949+
tests: "object"
10950+
}
10951+
}
10952+
}
10953+
}
10954+
}
10955+
}
1093910956
}
1094010957
],
1094110958
"schema/document-about.yml": [
@@ -20073,12 +20090,12 @@ var require_yaml_intelligence_resources = __commonJS({
2007320090
mermaid: "%%"
2007420091
},
2007520092
"handlers/mermaid/schema.yml": {
20076-
_internalId: 133541,
20093+
_internalId: 133552,
2007720094
type: "object",
2007820095
description: "be an object",
2007920096
properties: {
2008020097
"mermaid-format": {
20081-
_internalId: 133540,
20098+
_internalId: 133551,
2008220099
type: "enum",
2008320100
enum: [
2008420101
"png",
@@ -29472,7 +29489,8 @@ var getFrontMatterSchema = defineCached(
2947229489
"document-*",
2947329490
(field) => field.name !== "format"
2947429491
),
29475-
executeObjSchema
29492+
executeObjSchema,
29493+
refSchema("quarto-dev-schema", "")
2947629494
)
2947729495
),
2947829496
errorHandlers: []

src/resources/editor/tools/yaml/web-worker.js

Lines changed: 21 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/resources/editor/tools/yaml/yaml-intelligence-resources.json

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3912,6 +3912,23 @@
39123912
}
39133913
}
39143914
}
3915+
},
3916+
{
3917+
"id": "quarto-dev-schema",
3918+
"schema": {
3919+
"object": {
3920+
"properties": {
3921+
"_quarto": {
3922+
"hidden": true,
3923+
"object": {
3924+
"properties": {
3925+
"tests": "object"
3926+
}
3927+
}
3928+
}
3929+
}
3930+
}
3931+
}
39153932
}
39163933
],
39173934
"schema/document-about.yml": [
@@ -13049,12 +13066,12 @@
1304913066
"mermaid": "%%"
1305013067
},
1305113068
"handlers/mermaid/schema.yml": {
13052-
"_internalId": 133541,
13069+
"_internalId": 133552,
1305313070
"type": "object",
1305413071
"description": "be an object",
1305513072
"properties": {
1305613073
"mermaid-format": {
13057-
"_internalId": 133540,
13074+
"_internalId": 133551,
1305813075
"type": "enum",
1305913076
"enum": [
1306013077
"png",

src/resources/schema/definitions.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2031,3 +2031,13 @@
20312031
propertyNames:
20322032
string:
20332033
pattern: "^[^\\s]+$"
2034+
2035+
- id: quarto-dev-schema
2036+
schema:
2037+
object:
2038+
properties:
2039+
_quarto:
2040+
hidden: true
2041+
object:
2042+
properties:
2043+
tests: object

src/resources/types/schema-types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1077,6 +1077,8 @@ export type ProjectProfile = {
10771077

10781078
export type BadParseSchema = SchemaObject;
10791079

1080+
export type QuartoDevSchema = { _quarto?: { tests?: SchemaObject } };
1081+
10801082
export type ProjectConfig = {
10811083
"execute-dir"?:
10821084
| "file"

0 commit comments

Comments
 (0)