From a09ae89b4c433a81ec20fc3be6a58d4c9b03c930 Mon Sep 17 00:00:00 2001 From: adam jones Date: Tue, 7 Oct 2025 16:38:04 +0100 Subject: [PATCH] Align golang types with openapi.yaml schema (#628) Change Format constant from `file_path` to `filepath` to match the OpenAPI schema definition. This is not used by any servers yet, nor is it enforced by the database, so it's safe to change. --- pkg/model/types.go | 2 +- scripts/test_publish.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/model/types.go b/pkg/model/types.go index 1c4ca73..ef2dbbb 100644 --- a/pkg/model/types.go +++ b/pkg/model/types.go @@ -48,7 +48,7 @@ const ( FormatString Format = "string" FormatNumber Format = "number" FormatBoolean Format = "boolean" - FormatFilePath Format = "file_path" + FormatFilePath Format = "filepath" ) // Input represents a configuration input diff --git a/scripts/test_publish.sh b/scripts/test_publish.sh index c8ccf51..33730d5 100755 --- a/scripts/test_publish.sh +++ b/scripts/test_publish.sh @@ -102,7 +102,7 @@ cat > "$PAYLOAD_FILE" << EOF "type": "positional", "name": "config", "description": "Configuration file path", - "format": "file_path", + "format": "filepath", "isRequired": false, "default": "./config.json" }