Skip to content

Conversation

@TorecLuik
Copy link

Add integer support to Parameter default_value field
Currently, the Parameter.default_value field only accepts Union[str, float, bool], causing integer values like 10 to be converted to 10.0 by Pydantic. This breaks type distinction needed by downstream systems like BIOMERO that generate OMERO scripts requiring correct Int vs Float types.

This PR adds int to the union: Union[str, int, float, bool] for both Parameter and OutputParameter models. The change is backward compatible and enables proper integer/float distinction while preserving existing functionality.

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.

2 participants