Playbook parameters
A job declares its parameters with one JSON Schema document. The launch form, the API and a schedule read the same document, so a job asks for the same values wherever it is started.
Provenance
A job has exactly one source for its parameter document.
| Provenance | Document | Behaviour |
|---|---|---|
none | No document | The job has no parameters and supplied values are rejected |
inline | The document is stored with the job | The document is part of the job |
project_file | A JSON file inside the same pinned project revision | The document is read from the revision the job runs |
With none, a launch that supplies parameter values is rejected instead of silently dropping them.
Field mapping
The form projects each property of the document; it never rewrites the schema.
| Form control | JSON Schema |
|---|---|
| name | key in properties |
| label | title, falling back to the property name |
| description | description |
| select options | enum; a select appears for any type that declares it |
| required | membership in the top-level required array |
| default | the property's default |
| nullable | type array that includes "null" |
Supported property types are string, number, integer, boolean, array, object and null. Arrays, objects and null are edited as JSON in a text area; numbers and integers use a numeric field. minimum, maximum and minLength are validated when the launch is checked.
Value resolution
Three sources supply a value, in this order.
| Order | Source | Supplies a value when |
|---|---|---|
| 1 | Schema default | The property declares a default |
| 2 | Job extra_vars | The job sets the key |
| 3 | Run or schedule overrides | The launch sets the key |
A later source wins over an earlier one. Presence is preserved: false, 0, "" and null are values, never "missing", so they do not fall back to an earlier source.
Secret references
A property with writeOnly: true and format: "secret-reference" takes no value. It names a secret that the job already declares in options.secret_refs under the same name.
The property is a reference, not an extra-var value. It is excluded from the effective values and delivered to the run as an environment variable. Plaintext never enters the parameter document, the launch snapshot or an error message.
Read the value in a task with the runtime lookup, not from a variable. The secret itself is managed on the secrets page.
Schema revision
The schema revision is a SHA-256 digest of the canonical JSON document: sorted keys, no insignificant whitespace, numbers serialized as declared. It identifies the declared document, not semantic equivalence.
Form and values editor
The typed controls and the advanced values editor produce the same parameter object. The editor accepts JSON or YAML and is parsed into one canonical value set; it is not a second schema definition.
Example
One job schema with the supported scalar types, an enum, an array, a required property and a secret reference:
{
"type": "object",
"title": "Deploy application",
"properties": {
"release": {
"type": "string",
"title": "Release",
"description": "Tag to deploy.",
"default": "latest"
},
"replicas": {
"type": "integer",
"title": "Replicas",
"description": "Number of instances to run.",
"minimum": 1,
"default": 2
},
"dry_run": {
"type": "boolean",
"title": "Dry run",
"description": "Report changes without applying them.",
"default": false
},
"environment": {
"type": "string",
"title": "Environment",
"description": "Environment to deploy into.",
"enum": ["staging", "production"]
},
"extra_args": {
"type": "array",
"title": "Extra arguments",
"description": "Additional command-line arguments.",
"items": { "type": "string" }
},
"registry_token": {
"type": "string",
"title": "Registry token",
"description": "Secret reference used by the deploy task.",
"writeOnly": true,
"format": "secret-reference"
}
},
"required": ["environment", "registry_token"]
}
environment is required and has no default, so a launch has to supply it. registry_token declares a required secret reference; its value comes from the secret, never from the form.
The parameter contract is versioned with the product code. This page is a guide, not a second specification.