{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/Consumer", "title": "Consumer", "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "email": { "type": "string", "format": "email" }, "credentials": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": [ "api-key", "oauth2", "jwt", "basic-auth" ] }, "key": { "type": "string" } } } }, "tags": { "type": "array", "items": { "type": "string" } }, "createdAt": { "type": "string", "format": "date-time" } } }