Skip to content

Commit 13ba50a

Browse files
authored
Merge pull request #460 from netlify/kml/missingEnvVarProperty
fix: Add missing env var property - `context_parameter`
2 parents 894ba18 + 093644d commit 13ba50a

File tree

3 files changed

+30
-6
lines changed

3 files changed

+30
-6
lines changed

go/models/env_var_value.go

+8-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/models/set_env_var_value_params_body.go

+12-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

swagger.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -414,13 +414,18 @@ paths:
414414
properties:
415415
context:
416416
description: >-
417-
The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`.
417+
The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`. `branch` must be provided with a value in `context_parameter`.
418418
type: string
419419
enum:
420+
- all
420421
- dev
421422
- branch-deploy
422423
- deploy-preview
423424
- production
425+
- branch
426+
context_parameter:
427+
description: An additional parameter for custom branches. Currently, this is used for providing a branch name when `context=branch`.
428+
type: string
424429
value:
425430
description: The environment variable's unencrypted value
426431
type: string
@@ -2736,9 +2741,13 @@ definitions:
27362741
- branch-deploy
27372742
- deploy-preview
27382743
- production
2744+
- branch
27392745
description: >-
27402746
The deploy context in which this value will be used. `dev` refers to
27412747
local development when running `netlify dev`.
2748+
context_parameter:
2749+
type: string
2750+
description: An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`.
27422751
description: Environment variable value model definition
27432752
envVarUser:
27442753
type: object

0 commit comments

Comments
 (0)