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.
This commit is contained in:
adam jones 2025-10-07 16:38:04 +01:00 • committed by GitHub
commit a09ae89b4c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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"
}