Skip to content

Commit 3ad6f58

Browse files
autofix from pre-commit run --all-files prettier for json pre-commit hooks
1 parent 9872c01 commit 3ad6f58

11 files changed

+319
-281
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,5 @@
3535
]
3636
}
3737
},
38-
"forwardPorts": [
39-
8000, 8080
40-
]
38+
"forwardPorts": [8000, 8080]
4139
}

schemas/arch_schema.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@
33

44
"type": "object",
55
"title": "Unified Architecture Specification",
6-
"required": [
7-
"type",
8-
"extensions",
9-
"csrs",
10-
"instructions"
11-
],
6+
"required": ["type", "extensions", "csrs", "instructions"],
127
"allOf": [
138
{
149
"if": {
1510
"properties": {
16-
"type": { "enum": ["fully configured"]}
11+
"type": { "enum": ["fully configured"] }
1712
}
1813
},
1914
"then": {
@@ -111,7 +106,7 @@
111106
"profile_releases": {
112107
"type": "object",
113108
"items": {
114-
"type": "string"
109+
"type": "string"
115110
}
116111
},
117112
"manuals": {

schemas/cert_class_schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
"$ref": "schema_defs.json#/$defs/__source"
4545
}
4646
}
47-
}
47+
}

schemas/cert_model_schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,4 +196,4 @@
196196
"$ref": "schema_defs.json#/$defs/__source"
197197
}
198198
}
199-
}
199+
}

schemas/config_schema.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
"properties": {
3636
"XLEN": {
3737
"type": "integer",
38-
"enum": [
39-
32,
40-
64
41-
],
38+
"enum": [32, 64],
4239
"description": "Base instruction set datapath width (e.g., RV32 or RV64)\n"
4340
},
4441
"NAME": {
@@ -52,7 +49,7 @@
5249
},
5350
"M_MODE_ENDIANESS": {
5451
"type": "integer",
55-
"enum": [ 0, 1, 2],
52+
"enum": [0, 1, 2],
5653
"description": "Endianess of data in M-mode. Can be one of:\n\n * 0: M-mode data is always little endian\n * 1: M-mode data is always big endian\n * 2: M-mode data can be either little or big endian, depending on the RW CSR field mstatus.MBE\n"
5754
},
5855
"S_MODE_ENDIANESS": {
@@ -390,8 +387,6 @@
390387
"description": "When true, vstval is written with the casue when a SoftwareCheck exception occurs.\nWhen false, vstval is written with 0"
391388
},
392389

393-
394-
395390
"CONFIG_PTR_ADDRESS": {
396391
"type": "integer",
397392
"minimum": 0,
@@ -510,10 +505,7 @@
510505
}
511506
},
512507
"type": "object",
513-
"required": [
514-
"params",
515-
"extensions"
516-
],
508+
"required": ["params", "extensions"],
517509
"properties": {
518510
"params": {
519511
"$ref": "#/$defs/params"

schemas/csr_schema.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,16 @@
164164
},
165165
"csr_register": {
166166
"type": "object",
167-
"required": ["$schema", "kind", "name", "long_name", "length", "description", "priv_mode", "definedBy"],
167+
"required": [
168+
"$schema",
169+
"kind",
170+
"name",
171+
"long_name",
172+
"length",
173+
"description",
174+
"priv_mode",
175+
"definedBy"
176+
],
168177

169178
"properties": {
170179
"$schema": {
@@ -215,7 +224,8 @@
215224
"default": false,
216225
"description": "Whether or not the CSR is accessible via an indirect address"
217226
},
218-
"virtual_address": true, "$comment": "Conditionally required; see below",
227+
"virtual_address": true,
228+
"$comment": "Conditionally required; see below",
219229
"priv_mode": {
220230
"enum": ["M", "S", "U", "VS"]
221231
},

schemas/ext_schema.json

Lines changed: 50 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,14 @@
3939
},
4040
"ext_data": {
4141
"type": "object",
42-
"required": ["$schema", "kind", "name", "description", "long_name", "versions"],
42+
"required": [
43+
"$schema",
44+
"kind",
45+
"name",
46+
"description",
47+
"long_name",
48+
"versions"
49+
],
4350
"properties": {
4451
"$schema": {
4552
"type": "string",
@@ -101,24 +108,29 @@
101108
"description": "Extension(s) that conflict with this extension; both cannot be implemented at the same time",
102109
"oneOf": [
103110
{ "$ref": "schema_defs.json#/$defs/extension_requirement" },
104-
{ "type": "array", "items": { "$ref": "schema_defs.json#/$defs/extension_requirement" }}
111+
{
112+
"type": "array",
113+
"items": {
114+
"$ref": "schema_defs.json#/$defs/extension_requirement"
115+
}
116+
}
105117
]
106118
},
107119
"versions": {
108120
"type": "array",
109121
"items": {
110122
"type": "object",
111123
"required": ["version", "state"],
112-
"if": {
113-
"properties": {
114-
"state": {
115-
"const": "ratified"
116-
}
124+
"if": {
125+
"properties": {
126+
"state": {
127+
"const": "ratified"
117128
}
118-
},
119-
"then": {
120-
"required": ["ratification_date"]
121-
},
129+
}
130+
},
131+
"then": {
132+
"required": ["ratification_date"]
133+
},
122134
"properties": {
123135
"version": {
124136
"$ref": "schema_defs.json#/$defs/extension_version"
@@ -145,11 +157,19 @@
145157
"additionalProperties": false
146158
}
147159
},
148-
"ratification_date": {
160+
"ratification_date": {
149161
"oneOf": [
150-
{"type": "string", "pattern": "^20[0-9][0-9]-[0-9][0-9]$", "$comment": "When ratification date is known" },
151-
{"type": "string", "pattern": "^unknown$", "$comment": "When ratification date is unknown" },
152-
{"type": "null", "$comment": "When version isn't ratified" }
162+
{
163+
"type": "string",
164+
"pattern": "^20[0-9][0-9]-[0-9][0-9]$",
165+
"$comment": "When ratification date is known"
166+
},
167+
{
168+
"type": "string",
169+
"pattern": "^unknown$",
170+
"$comment": "When ratification date is unknown"
171+
},
172+
{ "type": "null", "$comment": "When version isn't ratified" }
153173
]
154174
},
155175
"changes": {
@@ -159,12 +179,23 @@
159179
},
160180
"description": "Changes since last version"
161181
},
162-
"url": { "type": "string", "format": "uri", "description": "Link to ratified document" },
182+
"url": {
183+
"type": "string",
184+
"format": "uri",
185+
"description": "Link to ratified document"
186+
},
163187
"implies": {
164188
"description": "Extension(s) implied by this extension (i.e., any subextensions)",
165189
"oneOf": [
166-
{ "$ref": "schema_defs.json#/$defs/extension_name_and_version" },
167-
{ "type": "array", "items": { "$ref": "schema_defs.json#/$defs/extension_name_and_version" }}
190+
{
191+
"$ref": "schema_defs.json#/$defs/extension_name_and_version"
192+
},
193+
{
194+
"type": "array",
195+
"items": {
196+
"$ref": "schema_defs.json#/$defs/extension_name_and_version"
197+
}
198+
}
168199
]
169200
},
170201
"requires": {
@@ -288,4 +319,4 @@
288319
},
289320

290321
"$ref": "#/$defs/ext_data"
291-
}
322+
}

schemas/inst_schema.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"description": "Specific value(s) that are not permitted for this field."
5151
}
5252
},
53-
"required": [ "location" ],
53+
"required": ["location"],
5454
"additionalProperties": false
5555
},
5656
"field": {
@@ -146,7 +146,16 @@
146146
},
147147
"inst_data": {
148148
"type": "object",
149-
"required": ["$schema", "kind", "name", "long_name", "description", "definedBy", "access", "assembly"],
149+
"required": [
150+
"$schema",
151+
"kind",
152+
"name",
153+
"long_name",
154+
"description",
155+
"definedBy",
156+
"access",
157+
"assembly"
158+
],
150159
"additionalProperties": false,
151160
"properties": {
152161
"$schema": {
@@ -278,5 +287,5 @@
278287
}
279288
},
280289

281-
"$ref": "#/$defs/inst_data"
290+
"$ref": "#/$defs/inst_data"
282291
}

0 commit comments

Comments
 (0)