@nju33/json-schema
Version:
[](https://www.npmjs.com/package/@nju33/json-schema)
37 lines (36 loc) • 693 B
JSON
{
"definitions": {
"types": {
"stringObject": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"stringOrStringArray": {
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"uniqueItems": true
}
]
},
"stringOrList": {
"$ref": "#/definitions/types/stringOrStringArray"
},
"map": {
"type": "object",
"additionalProperties": {
"type": "string"
}
}
}
}
}