Skip to content

Simplify check for non-null input object arguments#5333

Merged
rmosolgo merged 2 commits intomasterfrom
simplify-non-null-input-obj-check
Apr 21, 2025
Merged

Simplify check for non-null input object arguments#5333
rmosolgo merged 2 commits intomasterfrom
simplify-non-null-input-obj-check

Conversation

@rmosolgo
Copy link
Copy Markdown
Owner

@rmosolgo rmosolgo commented Apr 21, 2025

Fixes #2994

(Technically, there are two points in that issue -- but I'm sure point #2, benchmarking get_argument, has been done!)

This exposes an interesting bug where the first error created by an input object argument would give its name to the error message, while subsequent error messages add "problems." Reordering this code means that a new argument name may appear in the error message and the problems may appear in a different order.

@rmosolgo rmosolgo added this to the 2.5.5 milestone Apr 21, 2025
@rmosolgo rmosolgo merged commit f14562c into master Apr 21, 2025
15 checks passed
@rmosolgo rmosolgo deleted the simplify-non-null-input-obj-check branch April 21, 2025 21:51
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.

[Rework] Input argument validation

1 participant