Repository navigation
Description
Summary of the issue
cf tools omits the zone input from cf_dns_records_list. A caller that builds invocations from the tool schema has no schema field for selecting the target zone. The command accepts --zone and documents it in both --help and cf schema.
Expected behaviour
The tool schema exposes the optional zone selector for the same zone ID or domain name accepted by the CLI. It retains the current ability to use a zone configured in the environment.
Version of cf used
1.0.0-rc.1
System information and package versions
Node.js 26.13.1, npm 12.2.2, macOS 27.2 (arm64).
Reproduction (optional)
Run these commands with the cf version listed above. jq is used only to select the relevant output. The ID in the final command is synthetic, and the dry run makes no DNS change.
cf tools | jq -c '.tools[] | select(.name == "cf_dns_records_list") | .inputSchema.properties | {zone: has("zone"), name: has("name")}'
cf dns records list --help
cf schema dns records list
cf dns records list --zone 11111111111111111111111111111111 --dry-run | jq -r '.pathParams["zone-id"]'Relevant error logs (optional)
The first command returned {"zone":false,"name":true}. Help listed -z, --zone as the zone ID or domain name selector, and API schema described the zone_id path parameter with "flag": "zone". The dry run returned the exact synthetic ID. These probes needed no credentials.
Evidence
- Expected source: Release candidate changelog, Scripts and agents promises that
cf toolslists the flags a command accepts. The command's own help and API schema identify the relevant flag. - Failure source: The
cf toolscommand and itscf_dns_records_listschema output above. At currentmain, the tool converter builds properties from the command's argument and option metadata. The generatedcf dns records listentry lackszonein both lists. The published release and the CI package for the linkedmaincommit reproduced the omission. - Evidence provenance: observed
- Local verification: reproduced
- Reproduction completeness: complete
Restoration check
The projection reports zone: true and name: true. The zone property describes a zone ID or domain name, is optional so configured selection still works, and matches the input advertised in command help and API schema.
Triage assessment
- Impact level: P2
- Assessment status: supported
- Impact basis: Schema-driven clients cannot use a property for selecting the zone on a generated DNS command. The same CLI command can be invoked directly with a zone.
- Workaround status: available
- Workaround basis: A caller that can invoke the CLI directly can take
--zonefrom the command help or API schema and pass it as shown by the dry-run control.
Activity