Skip to content

Commit

Permalink
feat: add route json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 4, 2022
1 parent 3791545 commit c5480e1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -52,6 +52,7 @@
},
"files": [
"dist",
"./route.schema.json",
"*.d.ts"
],
"scripts": {
Expand Down
25 changes: 25 additions & 0 deletions route.schema.json
@@ -0,0 +1,25 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/posva/unplugin-vue-router/main/route.schema.json",
"title": "Route custom block",
"description": "An SFC custom block to add information to a route",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the route"
},
"path": {
"type": "string",
"description": "The path of the route"
},
"meta": {
"type": "object",
"description": "The meta of the route"
},
"props": {
"type": "boolean",
"description": "Whether the route should be passed its params as props"
}
}
}

0 comments on commit c5480e1

Please sign in to comment.