Skip to content

Conversation

@radu-mocanu
Copy link
Contributor

@radu-mocanu radu-mocanu commented Jan 13, 2026

  • add schema generation helpers

transform_refs -> resolves recursively $ref objects

transform_nullable_types -> handle anyOf types

transform_attachment -> scans the schema for attachments objects (UiPathAttachment title) and replaces them with expected job_attachment_definition

@radu-mocanu radu-mocanu self-assigned this Jan 13, 2026
Copilot AI review requested due to automatic review settings January 13, 2026 12:34
@radu-mocanu radu-mocanu force-pushed the feat/add-schema-helpers branch from f4faa14 to 7f12de4 Compare January 13, 2026 12:36
Copy link

Copilot AI left a 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_refs to recursively resolve $ref objects in JSON schemas with circular reference detection
  • Added process_nullable_types to handle anyOf patterns with null types
  • Added transform_attachment_refs to convert UiPathAttachment schema objects into standardized $ref definitions
  • 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.

@radu-mocanu radu-mocanu force-pushed the feat/add-schema-helpers branch from 7f12de4 to d920f7d Compare January 13, 2026 12:48
Copy link
Member

@cristipufu cristipufu left a 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

@radu-mocanu radu-mocanu force-pushed the feat/add-schema-helpers branch 2 times, most recently from 214abb2 to 387457f Compare January 13, 2026 13:23
@radu-mocanu radu-mocanu force-pushed the feat/add-schema-helpers branch from 387457f to a611555 Compare January 13, 2026 13:32
@radu-mocanu radu-mocanu merged commit 637170a into main Jan 13, 2026
11 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.

2 participants