Skip to content

[downgrade] quoted keys breaks conversion #169

@jimsheldon

Description

@jimsheldon

Here is a v1 pipeline with a quoted key (to make sure on is treated as a string rather than a boolean)

stages:
- name: test
  spec:
    steps:
    - name: job1
      "on":
        failure:
          errors:
          - all
          type: ignore
      spec:
        run: execute_script_1
      type: script
  type: ci
version: 1

Currently this fails to downgrade

2023/08/16 10:14:24 unexpected end of JSON input

Removing the double quotes around on converts successfully.

downgrade needs to allow for keys that are in double quotes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions