Skip to content

Commit 5256262

Browse files
ya7010yassun7010
andauthored
fix: readme properties. (SchemaStore#4597)
Co-authored-by: yassun7010 <[email protected]>
1 parent 96716a3 commit 5256262

File tree

1 file changed

+36
-32
lines changed

1 file changed

+36
-32
lines changed

src/schemas/json/pyproject.json

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -180,47 +180,51 @@
180180
"type": "string"
181181
},
182182
{
183+
"additionalProperties": false,
183184
"type": "object",
184-
"required": ["content-type"],
185+
"required": ["file"],
185186
"properties": {
187+
"file": {
188+
"title": "README file path",
189+
"type": "string"
190+
},
186191
"content-type": {
187-
"title": "README text content-type",
192+
"title": "README content-type",
188193
"description": "RFC 1341 compliant content-type (with optional charset, defaulting to UTF-8)",
189194
"type": "string"
190195
}
191196
},
192-
"oneOf": [
193-
{
194-
"additionalProperties": false,
195-
"required": ["file"],
196-
"properties": {
197-
"file": {
198-
"title": "README file path",
199-
"type": "string"
200-
},
201-
"content-type": {
202-
"title": "README content-type",
203-
"type": "string"
204-
}
205-
},
206-
"x-tombi-table-keys-order": "schema"
197+
"x-tombi-table-keys-order": "schema"
198+
},
199+
{
200+
"additionalProperties": false,
201+
"type": "object",
202+
"required": ["text"],
203+
"properties": {
204+
"text": {
205+
"title": "README text",
206+
"type": "string"
207207
},
208-
{
209-
"additionalProperties": false,
210-
"required": ["text"],
211-
"properties": {
212-
"text": {
213-
"title": "README text",
214-
"type": "string"
215-
},
216-
"content-type": {
217-
"title": "README content-type",
218-
"type": "string"
219-
}
220-
},
221-
"x-tombi-table-keys-order": "schema"
208+
"content-type": {
209+
"title": "README content-type",
210+
"description": "RFC 1341 compliant content-type (with optional charset, defaulting to UTF-8)",
211+
"type": "string"
222212
}
223-
]
213+
},
214+
"x-tombi-table-keys-order": "schema"
215+
},
216+
{
217+
"additionalProperties": false,
218+
"type": "object",
219+
"required": ["content-type"],
220+
"properties": {
221+
"content-type": {
222+
"title": "README content-type",
223+
"description": "RFC 1341 compliant content-type (with optional charset, defaulting to UTF-8)",
224+
"type": "string"
225+
}
226+
},
227+
"x-tombi-table-keys-order": "schema"
224228
}
225229
],
226230
"examples": [

0 commit comments

Comments
 (0)