Skip to content

Conversation

@mwiebe
Copy link
Contributor

@mwiebe mwiebe commented Oct 27, 2025

What was the problem/requirement? (What/Why)

Currently, the openjd run and other commands will fail if the job template they receive has an extension different from .json, .yml, or .yaml. It would be nice to be able to use other file extensions as well.

What was the solution? (How)

This change treats all non-.json extensions as YAML, so that job templates can be named with different extensions like .ojdt that clearly distinguish them from generic JSON or YAML.

What is the impact of this change?

More flexible usage of the openjd CLI.

How was this change tested?

Ran openjd run with job templates that have a different extension than .yaml or .json. Saw that the failing cases now worked.

Was this change documented?

No

Is this a breaking change?

No

Does this change impact security?

No


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Currently, the `openjd run` and other commands will fail if the job
template they receive has an extension different from .json, .yml, or
.yaml. This change treats all non-.json extensions as YAML, so that job
templates can be named with different extensions like `.ojdt` that
clearly distinguish them from generic JSON or YAML.

Signed-off-by: Mark <[email protected]>
@mwiebe mwiebe requested a review from a team as a code owner October 27, 2025 18:29
@sonarqubecloud
Copy link

@mwiebe mwiebe merged commit 338f4d8 into OpenJobDescription:mainline Oct 27, 2025
20 checks passed
@mwiebe mwiebe deleted the other-extensions-as-yaml branch October 27, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants