@uni-helper/pages-json-schema 0.1.7 → 0.1.9

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 (3) hide show
  1. package/README.md +23 -0
  2. package/package.json +1 -1
  3. package/schema.json +10 -2
package/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # @uni-helper/pages-json-schema
2
+
3
+ 为 uni-app 的 `pages.json` 提供 schema
4
+
5
+ ## 安装
6
+
7
+ ```bash
8
+ pnpm add @uni-helper/pages-json-schema
9
+ ```
10
+
11
+ ## 用法
12
+
13
+ ```js
14
+ import PagesSchema from '@uni-helper/pages-json-schema'
15
+
16
+ console.log(PagesSchema)
17
+
18
+ // {
19
+ // "$ref": "#/definitions/PagesConfig",
20
+ // "$schema": "http://json-schema.org/draft-07/schema#",
21
+ // "definitions": {...}
22
+ // }
23
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni-helper/pages-json-schema",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Schema for uni-app pages.json",
5
5
  "author": "KeJun",
6
6
  "license": "MIT",
package/schema.json CHANGED
@@ -51,8 +51,16 @@
51
51
  "type": "object"
52
52
  },
53
53
  "titleNView": {
54
- "description": "导航栏 ,详见?:导航栏",
55
- "type": "object"
54
+ "anyOf": [
55
+ {
56
+ "type": "object"
57
+ },
58
+ {
59
+ "const": false,
60
+ "type": "boolean"
61
+ }
62
+ ],
63
+ "description": "导航栏 ,详见?:导航栏; 设置为 false 不显示默认导航栏"
56
64
  }
57
65
  },
58
66
  "type": "object"