Skip to content

fix: Update Rules & Actions to match current Rossum API state#152

Merged
stancld merged 7 commits intorossumai:mainfrom
stancld:ds-rules-improvement
Mar 17, 2026
Merged

fix: Update Rules & Actions to match current Rossum API state#152
stancld merged 7 commits intorossumai:mainfrom
stancld:ds-rules-improvement

Conversation

@stancld
Copy link
Contributor

@stancld stancld commented Mar 17, 2026

Fixes #151

stancld added 6 commits March 17, 2026 14:53
The Rossum API uses a queue URL, not an integer ID. Also update
reimport default to match the API spec.
The API supports both a single schema_id and a list of schema_ids
for show_field/hide_field actions.
…_child_id

The API supports multiple schema_ids and a multivalue_child_id for
line item context. Make schema_id optional to match.
The add_remove_label action has a condition field that determines
whether labels are added or removed, unlike add_label/remove_label.
The show_hide_field action has a condition field that determines
whether fields are shown or hidden, unlike show_field/hide_field.
Replace the None/dict fallback for "custom" action type with a proper
dataclass that has hook_interface and payload fields.
@stancld stancld requested a review from mskl March 17, 2026 13:56
@stancld stancld self-assigned this Mar 17, 2026
Use .get() instead of [] for action type lookup so that future/unknown
action types return a raw dict payload instead of raising KeyError.
@stancld stancld force-pushed the ds-rules-improvement branch from 735cd9e to d5e8980 Compare March 17, 2026 14:07
Copy link
Member

@mskl mskl left a comment

Choose a reason for hiding this comment

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

lgtm 🚀

@stancld stancld merged commit b3ce170 into rossumai:main Mar 17, 2026
10 checks passed
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.

fix: Update rules & actions to match current Rossum API state

2 participants