Skip to content

Commit 2067515

Browse files
committed
feat: add route json schema
1 parent ab89513 commit 2067515

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

packages/router/route.schema.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://raw.githubusercontent.com/posva/unplugin-vue-router/main/route.schema.json",
4+
"title": "Route custom block",
5+
"description": "An SFC custom block to add information to a route",
6+
"type": "object",
7+
"properties": {
8+
"name": {
9+
"type": "string",
10+
"description": "The name of the route"
11+
},
12+
"path": {
13+
"type": "string",
14+
"description": "The path of the route"
15+
},
16+
"meta": {
17+
"type": "object",
18+
"description": "The meta of the route"
19+
},
20+
"props": {
21+
"type": "boolean",
22+
"description": "Whether the route should be passed its params as props"
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)