mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
chore: disable parameter validatation for dynamic params for all transitions (#17926)
Dynamic params skip parameter validation in coder/coder. This is because conditional parameters cannot be validated with the static parameters in the database.
This commit is contained in:
1
docs/reference/api/builds.md
generated
1
docs/reference/api/builds.md
generated
@ -1731,6 +1731,7 @@ curl -X POST http://coder-server:8080/api/v2/workspaces/{workspace}/builds \
|
||||
```json
|
||||
{
|
||||
"dry_run": true,
|
||||
"enable_dynamic_parameters": true,
|
||||
"log_level": "debug",
|
||||
"orphan": true,
|
||||
"rich_parameter_values": [
|
||||
|
2
docs/reference/api/schemas.md
generated
2
docs/reference/api/schemas.md
generated
@ -1917,6 +1917,7 @@ This is required on creation to enable a user-flow of validating a template work
|
||||
```json
|
||||
{
|
||||
"dry_run": true,
|
||||
"enable_dynamic_parameters": true,
|
||||
"log_level": "debug",
|
||||
"orphan": true,
|
||||
"rich_parameter_values": [
|
||||
@ -1939,6 +1940,7 @@ This is required on creation to enable a user-flow of validating a template work
|
||||
| Name | Type | Required | Restrictions | Description |
|
||||
|------------------------------|-------------------------------------------------------------------------------|----------|--------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `dry_run` | boolean | false | | |
|
||||
| `enable_dynamic_parameters` | boolean | false | | Enable dynamic parameters skips some of the static parameter checking. It will default to whatever the template has marked as the default experience. Requires the "dynamic-experiment" to be used. |
|
||||
| `log_level` | [codersdk.ProvisionerLogLevel](#codersdkprovisionerloglevel) | false | | Log level changes the default logging verbosity of a provider ("info" if empty). |
|
||||
| `orphan` | boolean | false | | Orphan may be set for the Destroy transition. |
|
||||
| `rich_parameter_values` | array of [codersdk.WorkspaceBuildParameter](#codersdkworkspacebuildparameter) | false | | Rich parameter values are optional. It will write params to the 'workspace' scope. This will overwrite any existing parameters with the same name. This will not delete old params not included in this list. |
|
||||
|
Reference in New Issue
Block a user