Skip to content

Noop text/plain formatter drops hyphens #1568

@mfeit-internet2

Description

@mfeit-internet2

Found by accident:

The noop formatter removes hyphens from the keys in objects:

$ pscheduler task noop --data '{ "foo-bar": "baz-quux" }'
Submitting task...
Task URL:
https://el9u-80q0sC0p/pscheduler/tasks/bdc73980-5e4e-436b-81c6-d327286cd15a
Running with tool 'passthrough'
Fetching first run...

Next scheduled run:
https://el9u-80q0sC0p/pscheduler/tasks/bdc73980-5e4e-436b-81c6-d327286cd15a/runs/0b39abd4-e17c-4723-a723-a2d594f4ddb0
Starts 2025-07-15T21:58:40+00:00 (~3 seconds)
Ends   2025-07-15T21:58:41+00:00 (~0 seconds)
Waiting for result...

Data:
{
  "foobar": "baz-quux"
}

No further runs scheduled.

Not a problem with the raw result:

pscheduler result --format json  https://el9u-80q0sC0p/pscheduler/tasks/bdc73980-5e4e-436b-81c6-d327286cd15a/runs/0b39abd4-e17c-4723-a723-a2d594f4ddb0
{"data":{"foo-bar":"baz-quux"},"schema":1,"succeeded":true}

Metadata

Metadata

Labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions