Skip to content

feat: update to use pydantic for data validation #1

Merged
malto101 merged 2 commits intomainfrom
feature/main/pydantic
Apr 4, 2025
Merged

feat: update to use pydantic for data validation #1
malto101 merged 2 commits intomainfrom
feature/main/pydantic

Conversation

@malto101
Copy link
Member

@malto101 malto101 commented Apr 2, 2025

No description provided.

Copy link
Contributor

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 updates the framework to use Pydantic for data validation and improves type annotations and documentation across multiple modules while also refactoring module discovery logic. Key changes include conversion of TypedDict-based models to Pydantic models, improved type hints in factory and API modules, and updates to logging configuration.

Reviewed Changes

Copilot reviewed 28 out of 28 changed files in this pull request and generated no comments.

File Description
optics_framework/common/runner/test_runnner.py Refactored models from TypedDict to BaseModel; note potential file naming typo.
optics_framework/common/optics_builder.py Updated to use Pydantic configuration; added get_text_detection method using TextFactory.
optics_framework/common/expose_api.py Updated API endpoints to return Pydantic models and reworked session configuration.
Remaining files Updated type annotations, refactored configuration with Pydantic, and improved documentation.

@malto101
Copy link
Member Author

malto101 commented Apr 3, 2025

@davidamo9 could you review this

@malto101 malto101 force-pushed the feature/main/pydantic branch from 0335a5a to 2a1ab67 Compare April 4, 2025 14:31
@malto101 malto101 merged commit bebca0a into main Apr 4, 2025
1 check passed
@malto101 malto101 deleted the feature/main/pydantic branch April 4, 2025 20:38
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