Equal of xsi:type in JSON Schema
问题 How can I hint the type of embedded objects in JSON Schema, analogous to xsi:type in XML Schema? Example schema document: { "type": "storeRequest", "properties": { "txid": { "description": "Transaction ID to prevent double committing", "type": "integer" }, "objects": { "description": "Objects to store", "type": "array" "items": { "type": "object" }, "minItems": 1, "uniqueItems": true }, }, "required": ["txid", "objects"] } This is a request the client sends to the server to store multiple