Skip to content

YDA-7031 - #756

Merged
lwesterhof merged 11 commits into
developmentfrom
yda-7031
Aug 5, 2026
Merged

YDA-7031#756
lwesterhof merged 11 commits into
developmentfrom
yda-7031

Conversation

@lwesterhof

@lwesterhof lwesterhof commented Jun 29, 2026

Copy link
Copy Markdown
Member

@lwesterhof
lwesterhof marked this pull request as ready for review June 29, 2026 09:30
@stsnel
stsnel self-requested a review July 2, 2026 12:19
@stsnel
stsnel force-pushed the yda-7031 branch 4 times, most recently from 1db3a19 to 284fa08 Compare July 13, 2026 15:18
@stsnel
stsnel force-pushed the yda-7031 branch 4 times, most recently from 22712f0 to c9ddfdb Compare July 23, 2026 20:04

@stsnel stsnel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! 👍

Since I've added some code to the PR, I think it would be good to have an independent second review for this PR, with a focus on the commits that have been added later.

@claravox claravox left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for adding these unit tests, they help a lot!
Generally looks good, I am wondering if it would be helpful to use assertDictEqual in cases where we compare dictionaries (see https://stackoverflow.com/questions/34414326/why-is-assertdictequal-needed-if-dicts-can-be-compared-by)
Also there is a merge conflict?

Comment thread unit-tests/test_util_api.py Outdated

@claravox claravox left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

lwesterhof and others added 9 commits August 5, 2026 08:42
Relax API type checks for numeric types, since JSON doesn't
really distinguish between them.
Since bool("True") == True, but bool("False") == True as well
If the API call format is not accepted (e.g. because
it can't be decoded or because a parameter is missing),
return a specific error message.

This is useful feedback for people trying to use the API,
and does not expose any internal information.
Ensure that the API type checker recognizes old-style
Union type syntax (e.g. Union[str, int] instead of str|int)
Ensure that API functions use Optional type annotations rather
than new-style syntax (e.g. Optional[str] rather than str | None).
Otherwise the API type checker can fail when running on Python 3.9.
@lwesterhof
lwesterhof merged commit a8efbe6 into development Aug 5, 2026
14 checks passed
@lwesterhof
lwesterhof deleted the yda-7031 branch August 5, 2026 07:03
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