Skip to content

Conversation

@luca-della-vedova
Copy link
Member

New feature implementation

Implemented feature

This PR adds support for experimental parameter passing. In the process I had to update yaserde otherwise it failed parsing fields that had : in their name.

Implementation description

In the process, yaserde dropped the behind the scenes behavior of using Default for fields that are not found. This is both great because we won't have silently default values but is also not great because a lot of models out there don't actually follow the specification and don't have all the required fields.
As a temporary workaround I changed the specification to set some fields that the models in the RMF ecosystem don't set as not required, this is not great but at least unblocks us moving forward while there is a larger discussion on the meaning of "required" in the specification

GenAI Use

We follow OSRA's policy on GenAI tools

  • I used a GenAI tool in this PR.
  • I did not use GenAI

Signed-off-by: Luca Della Vedova <[email protected]>
Signed-off-by: Luca Della Vedova <[email protected]>
Signed-off-by: Luca Della Vedova <[email protected]>
Signed-off-by: Luca Della Vedova <[email protected]>
@arjo129 arjo129 self-requested a review July 3, 2025 03:14
Copy link
Member

@arjo129 arjo129 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this! I wonder how hard it'd be to convince upstream ya-serde maintainers to fix their re-export. Then again it does seem theyre somewhat overwhelmed.

@luca-della-vedova
Copy link
Member Author

There is an upstream issue that I also commented about 2y ago but it's not really making progress, I guess if it was a PR it would be faster

@luca-della-vedova luca-della-vedova merged commit 514949e into main Jul 3, 2025
2 checks passed
@luca-della-vedova luca-della-vedova deleted the luca/experimental_params_new_yaserde branch July 3, 2025 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants