src/postconfig.schema.json
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "https://askirmas.github.io/postcss-d-ts/postconfig.schema.json",
"properties": {
"plugins": {
"type": ["array", "object"],
"properties": {
"postcss-d-ts": {
"$ref": "./schema.json"
},
"postcss-d-ts/dist/7": {
"$ref": "./schema.json"
}
},
"--- items ---": {
"type": ["array", "string"],
"examples": [
"postcss-d-ts",
["postcss-d-ts", {}],
"postcss-d-ts/dist/7",
["postcss-d-ts/dist/7", {}]
],
"if": {
"items": [{"$ref": "#/definitions/versions"}]
},
"then": {
"items": [
{"$ref": "#/definitions/versions"},
{"$ref": "./schema.json"}
],
"maxItems": 2
}
}
}
},
"definitions": {
"versions": {
"enum": [
"postcss-d-ts",
"postcss-d-ts/dist/7"
]
}
}
}