-
Notifications
You must be signed in to change notification settings - Fork 130
feat: add per-function region parameter
#641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tighten schema validation for region fields and overrides.
regionis documented as an airport code, but these fields currently accept any string, and override items allow missingname/region. This weak contract lets malformed payloads pass client-side validation.🔧 Suggested schema constraints
function: type: object properties: @@ region: type: string + pattern: '^[a-z]{3}$' + minLength: 3 + maxLength: 3 @@ functions_region: type: string description: | The functions region for this deploy as an airport code. + pattern: '^[a-z]{3}$' + minLength: 3 + maxLength: 3 functions_region_overrides: type: array items: type: object + required: + - name + - region properties: name: type: string + minLength: 1 region: type: string + pattern: '^[a-z]{3}$' + minLength: 3 + maxLength: 3 @@ functionConfig: type: object properties: @@ region: type: string + pattern: '^[a-z]{3}$' + minLength: 3 + maxLength: 3Also applies to: 4694-4709, 5568-5569
🤖 Prompt for AI Agents