Skip to content

Error raised when wrong key in deliver spec - #754

Open
ArturU043 wants to merge 3 commits into
masterfrom
746-error-on-wrong-field
Open

Error raised when wrong key in deliver spec#754
ArturU043 wants to merge 3 commits into
masterfrom
746-error-on-wrong-field

Conversation

@ArturU043

Copy link
Copy Markdown
Contributor

The ServiceXSpec pydantic model does not complain when an non-existing parameter is fed via the spec config.
Which leads to issues like in #746, a typo in a dictionary field is ignored if the field is optional. The user wont be notified.

This PR raises a TypeError if a key in "General" and "Sample" fields does not match with the respective DocStringBaseModel

@ArturU043 ArturU043 self-assigned this Jul 22, 2026
@ArturU043
ArturU043 requested a review from ponyisi July 22, 2026 13:01
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.

1 participant