{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://example.com/product.schema.json", "title": "Product", "description": "A product from Acme's catalog", "type": "object", "oneOf": [ { "properties": { "$schema": { "type": "string" }, "request": { "description": "The unique identifier for a product", "type": "array", "items": { "type": "string" } } }, "additionalProperties": false }, { "properties": { "$schema": { "type": "string" }, "groups": { "description": "The unique identifier for a product", "type": "object", "additionalProperties": { "oneOf": [ { "type": "array", "required": [ "name" ], "items": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "item", "fluid", "virtual", "entity", "recipe", "space-location", "asteroid-chunk", "quality" ] }, "name": { "type": "string" }, "count": { "type": "integer" }, "quality": { "type": "string" } }, "additionalProperties": false } }, { "type": "object", "additionalProperties": { "type": "integer" } } ] } } }, "additionalProperties": false }, { "properties": { "$schema": { "type": "string" }, "message": { "description": "Error occuring during the request", "type": "string" } }, "additionalProperties": false } ], "unevaluatedProperties": false }