fix(schema): use $refs instead of defines (#1788)
This commit is contained in:
+16
-16
@@ -12,12 +12,9 @@ parser.add_argument("--schemastore", action="store_true", help="Generate schema_
|
|||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
starter = """
|
starter = """
|
||||||
$id: https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/cibuildwheel.schema.json
|
|
||||||
$schema: http://json-schema.org/draft-07/schema
|
$schema: http://json-schema.org/draft-07/schema
|
||||||
additionalProperties: false
|
$id: https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/cibuildwheel.schema.json
|
||||||
description: cibuildwheel's settings.
|
$defs:
|
||||||
type: object
|
|
||||||
defines:
|
|
||||||
inherit:
|
inherit:
|
||||||
enum:
|
enum:
|
||||||
- none
|
- none
|
||||||
@@ -25,6 +22,9 @@ defines:
|
|||||||
- append
|
- append
|
||||||
default: none
|
default: none
|
||||||
description: How to inherit the parent's value.
|
description: How to inherit the parent's value.
|
||||||
|
additionalProperties: false
|
||||||
|
description: cibuildwheel's settings.
|
||||||
|
type: object
|
||||||
properties:
|
properties:
|
||||||
archs:
|
archs:
|
||||||
description: Change the architectures built on your machine by default.
|
description: Change the architectures built on your machine by default.
|
||||||
@@ -223,17 +223,17 @@ items:
|
|||||||
type: object
|
type: object
|
||||||
additionalProperties: false
|
additionalProperties: false
|
||||||
properties:
|
properties:
|
||||||
before-all: {"$ref": "#/defines/inherit"}
|
before-all: {"$ref": "#/$defs/inherit"}
|
||||||
before-build: {"$ref": "#/defines/inherit"}
|
before-build: {"$ref": "#/$defs/inherit"}
|
||||||
before-test: {"$ref": "#/defines/inherit"}
|
before-test: {"$ref": "#/$defs/inherit"}
|
||||||
config-settings: {"$ref": "#/defines/inherit"}
|
config-settings: {"$ref": "#/$defs/inherit"}
|
||||||
container-engine: {"$ref": "#/defines/inherit"}
|
container-engine: {"$ref": "#/$defs/inherit"}
|
||||||
environment: {"$ref": "#/defines/inherit"}
|
environment: {"$ref": "#/$defs/inherit"}
|
||||||
environment-pass: {"$ref": "#/defines/inherit"}
|
environment-pass: {"$ref": "#/$defs/inherit"}
|
||||||
repair-wheel-command: {"$ref": "#/defines/inherit"}
|
repair-wheel-command: {"$ref": "#/$defs/inherit"}
|
||||||
test-command: {"$ref": "#/defines/inherit"}
|
test-command: {"$ref": "#/$defs/inherit"}
|
||||||
test-extras: {"$ref": "#/defines/inherit"}
|
test-extras: {"$ref": "#/$defs/inherit"}
|
||||||
test-requires: {"$ref": "#/defines/inherit"}
|
test-requires: {"$ref": "#/$defs/inherit"}
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$id": "https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/cibuildwheel.schema.json",
|
|
||||||
"$schema": "http://json-schema.org/draft-07/schema",
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
"additionalProperties": false,
|
"$id": "https://github.com/pypa/cibuildwheel/blob/main/cibuildwheel/resources/cibuildwheel.schema.json",
|
||||||
"description": "cibuildwheel's settings.",
|
"$defs": {
|
||||||
"type": "object",
|
|
||||||
"defines": {
|
|
||||||
"inherit": {
|
"inherit": {
|
||||||
"enum": [
|
"enum": [
|
||||||
"none",
|
"none",
|
||||||
@@ -15,6 +12,9 @@
|
|||||||
"description": "How to inherit the parent's value."
|
"description": "How to inherit the parent's value."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
|
"description": "cibuildwheel's settings.",
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"archs": {
|
"archs": {
|
||||||
"description": "Change the architectures built on your machine by default.",
|
"description": "Change the architectures built on your machine by default.",
|
||||||
@@ -439,37 +439,37 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"before-all": {
|
"before-all": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"before-build": {
|
"before-build": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"before-test": {
|
"before-test": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"config-settings": {
|
"config-settings": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"container-engine": {
|
"container-engine": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"environment": {
|
"environment": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"environment-pass": {
|
"environment-pass": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"repair-wheel-command": {
|
"repair-wheel-command": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"test-command": {
|
"test-command": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"test-extras": {
|
"test-extras": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
},
|
},
|
||||||
"test-requires": {
|
"test-requires": {
|
||||||
"$ref": "#/defines/inherit"
|
"$ref": "#/$defs/inherit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user