-
Notifications
You must be signed in to change notification settings - Fork 1
feat: add schema generation helpers #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f4faa14 to
7f12de4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds three schema generation helper functions to the runtime module and bumps the version from 0.4.0 to 0.4.1. The new utilities help process JSON schemas by resolving references, handling nullable types, and transforming UiPath attachment definitions.
Changes:
- Added
resolve_refsto recursively resolve$refobjects in JSON schemas with circular reference detection - Added
process_nullable_typesto handleanyOfpatterns with null types - Added
transform_attachment_refsto convert UiPathAttachment schema objects into standardized$refdefinitions - Version bump from 0.4.0 to 0.4.1 in both pyproject.toml and uv.lock
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 12 comments.
| File | Description |
|---|---|
| src/uipath/runtime/schema.py | Added three new schema processing functions with helper and updated exports |
| tests/test_schema.py | Added comprehensive test suite for transform_attachment_refs and basic integration test for resolve_refs/process_nullable_types |
| pyproject.toml | Version bumped to 0.4.1 |
| uv.lock | Version bumped to 0.4.1 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
7f12de4 to
d920f7d
Compare
cristipufu
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should have consistent naming for these methods
214abb2 to
387457f
Compare
387457f to
a611555
Compare
transform_refs -> resolves recursively
$refobjectstransform_nullable_types -> handle
anyOftypestransform_attachment -> scans the schema for attachments objects (UiPathAttachment title) and replaces them with expected
job_attachment_definition