From 6ac6e5d472428ab6bb0542d9f847d2f5ab68db64 Mon Sep 17 00:00:00 2001 From: Mahesh Vagicherla Date: Thu, 22 Oct 2026 22:15:52 +0530 Subject: [PATCH] fix: resolve duplicate CreateMessageRequest schema and YAML indentation errors The Anthropic Messages API schema added in #165 reused the name CreateMessageRequest, which already exists for the Assistants API. The duplicate mapping key breaks strict YAML parsing and fails mint validate in docs. Rename the Anthropic schema to CreateAnthropicMessageRequest and update its references. Also indent four closing flow-sequence brackets in guardrail examples that strict parsers reject with 'deficient indentation'. --- openapi.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 3a01537f..fa40fafb 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -350,7 +350,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CreateMessageRequest" + $ref: "#/components/schemas/CreateAnthropicMessageRequest" responses: "200": description: OK @@ -2561,7 +2561,7 @@ paths: "self-harm/intent", "sexual/minors", "violence/graphic" - ] + ] timeout: 5000 actions: onFail: "block" @@ -2597,7 +2597,7 @@ paths: "SSN", "CREDIT_CARD", "NAME" - ] + ] timeout: 5000 actions: onFail: "block" @@ -2661,7 +2661,7 @@ paths: "secrets", "toxic_language", "invisible_characters" - ] + ] timeout: 5000 - id: "pillar.scanResponse" parameters: @@ -2736,7 +2736,7 @@ paths: "violence_and_threats", "selfharm", "pii" - ] + ] timeout: 5000 actions: onFail: "block" @@ -24197,7 +24197,7 @@ components: type: integer description: Max tokens for thinking. Required when type is enabled. - CreateMessageRequest: + CreateAnthropicMessageRequest: type: object required: - model @@ -24322,7 +24322,7 @@ components: properties: model: type: string - description: The model identifier (same format as CreateMessageRequest). + description: The model identifier (same format as CreateAnthropicMessageRequest). example: "claude-sonnet-4-6-20251101" messages: type: array