Skip to content

Conversation

@mwiebe
Copy link
Contributor

@mwiebe mwiebe commented Oct 29, 2025

Fixes #238

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

Some of the sample code in the README.md no longer worked after the change for RFC 0002.
https://github.com/OpenJobDescription/openjd-specifications/blob/mainline/rfcs/0002-model-extensions.md updated OpenJD to make the fields and validation of template components depend on an 'extensions' property at the top level of the template. Implementing this in the model library involved adding a model parsing context that objects look at during construction and validation.

What was the solution? (How)

This change adds a docstring for the parse_model function and updates the broken examples to explain how the extensions fit in and how to create model objects.

What is the impact of this change?

All the sample code in README.md works again.

How was this change tested?

I copy/pasted all the code samples into a Jupyter notebook and saw that they worked.

Was this change documented?

It is docs.

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.

Some of the sample code in the README.md no longer worked after the
change for RFC 0002.
https://github.com/OpenJobDescription/openjd-specifications/blob/mainline/rfcs/0002-model-extensions.md
updated OpenJD to make the fields and validation of template components
depend on an 'extensions' property at the top level of the template.
Implementing this in the model library involved adding a model parsing
context that objects look at during construction and validation.

This change adds a docstring for the parse_model function and updates
the broken examples to explain how the extensions fit in and how to
create model objects.

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

@mwiebe mwiebe enabled auto-merge (rebase) October 29, 2025 23:00
@mwiebe mwiebe merged commit 9518110 into OpenJobDescription:mainline Oct 30, 2025
26 checks passed
@mwiebe mwiebe deleted the readme-update branch October 30, 2025 15:56
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.

Docs: broken examples for creating job templates programmatically

3 participants