Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: openjd check does not handle duplicate keys #125

Open
AWS-Samuel opened this issue Dec 19, 2024 · 0 comments
Open

Bug: openjd check does not handle duplicate keys #125

AWS-Samuel opened this issue Dec 19, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@AWS-Samuel
Copy link

AWS-Samuel commented Dec 19, 2024

Describe the bug

Given a job template, which has duplicate keys. openjd check will consider the job template as valid, even though it's not valid yaml.

Expected Behaviour

The template will not be considered valid, due to having duplicate keys

Current Behaviour

The template will be considered valid, even with duplicate keys.

Reproduction Steps

Given the template:

specificationVersion: 'jobtemplate-2023-09'
specificationVersion: 'jobtemplate-2023-09'
name: Foo
name: Foo
steps:
- name: Bar
  script:
    actions:
      onRun:
        command: Baz
        command: Baz
      onRun:
        command: Baz
        command: Baz
    actions:
      onRun:
        command: Baz
        command: Baz
      onRun:
        command: Baz
        command: Baz
> openjd check template.yaml
Template at 'template.yaml' passes validation checks.
@AWS-Samuel AWS-Samuel added bug Something isn't working needs triage A new issue that needs a first look good first issue Good for newcomers and removed needs triage A new issue that needs a first look labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant