{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/RestAuthentication", "title": "RestAuthentication", "type": "object", "properties": { "type": { "type": "string", "enum": [ "OAUTH" ], "description": "Authentication type.", "example": "OAUTH" } }, "required": [ "type" ], "discriminator": { "propertyName": "type", "mapping": { "OAUTH": "OAuth" } } }