Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc0e48fe

Browse files
committed
Reuse definition in rush.schema.json rather than duplicating it multiple times
1 parentfd74ef6 commitc0e48fe

File tree

1 file changed

+21
-42
lines changed

1 file changed

+21
-42
lines changed

‎apps/rush-lib/src/schemas/rush.schema.json

Lines changed: 21 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,24 @@
33
"title":"Rush main config File",
44
"description":"The main configuration file for the Rush multi-project build tool. See http://rushjs.io for details.",
55
"type":"object",
6+
"definitions": {
7+
"environmentVariables": {
8+
"description":"Enviroment variables for the package manager",
9+
"type":"object",
10+
"additionalProperties": {
11+
"type":"object",
12+
"properties": {
13+
"value": {
14+
"type":"string"
15+
},
16+
"override": {
17+
"type":"boolean"
18+
}
19+
},
20+
"additionalProperties":false
21+
}
22+
}
23+
},
624
"properties": {
725
"$schema": {
826
"description":"Part of the JSON Schema standard, this optional keyword declares the URL of the schema that the file conforms to. Editors may download the schema and use it to perform syntax highlighting.",
@@ -53,20 +71,7 @@
5371
"type":"object",
5472
"properties": {
5573
"environmentVariables": {
56-
"description":"Enviroment variables for the package manager",
57-
"type":"object",
58-
"additionalProperties": {
59-
"type":"object",
60-
"properties": {
61-
"value": {
62-
"type":"string"
63-
},
64-
"override": {
65-
"type":"boolean"
66-
}
67-
},
68-
"additionalProperties":false
69-
}
74+
"$ref":"#/definitions/environmentVariables"
7075
}
7176
},
7277
"additionalProperties":false
@@ -96,20 +101,7 @@
96101
]
97102
},
98103
"environmentVariables": {
99-
"description":"Enviroment variables for the package manager",
100-
"type":"object",
101-
"additionalProperties": {
102-
"type":"object",
103-
"properties": {
104-
"value": {
105-
"type":"string"
106-
},
107-
"override": {
108-
"type":"boolean"
109-
}
110-
},
111-
"additionalProperties":false
112-
}
104+
"$ref":"#/definitions/environmentVariables"
113105
}
114106
},
115107
"additionalProperties":false
@@ -123,20 +115,7 @@
123115
"type":"boolean"
124116
},
125117
"environmentVariables": {
126-
"description":"Enviroment variables for the package manager",
127-
"type":"object",
128-
"additionalProperties": {
129-
"type":"object",
130-
"properties": {
131-
"value": {
132-
"type":"string"
133-
},
134-
"override": {
135-
"type":"boolean"
136-
}
137-
},
138-
"additionalProperties":false
139-
}
118+
"$ref":"#/definitions/environmentVariables"
140119
}
141120
},
142121
"additionalProperties":false

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp