Skip to content
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

feat: DIA-1415: Add LabelConfig->ResponseModel generator #327

Merged
merged 18 commits into from
Oct 21, 2024
Merged

Conversation

niklub
Copy link
Contributor

@niklub niklub commented Sep 30, 2024

Summary of changes

• Added functionality to convert Label Studio interface configurations to JSON schema, enhancing interoperability with other tools and systems

• Implemented a new utility function json_schema_to_pydantic that dynamically generates Pydantic models from JSON schemas, enabling runtime type checking and validation

• Extended various control tag classes (e.g., ChoicesTag, LabelsTag, NumberTag) with to_json_schema methods, providing detailed schema representations for each tag type

• Added a to_json_schema method to the LabelInterface class, allowing for easy conversion of entire labeling configurations to JSON schema

• Introduced new test cases in test_json_schema.py to verify the correct conversion of Label Studio configurations to JSON schemas and the proper functioning of the Pydantic model generation

• Updated project dependencies to include datamodel-code-generator, supporting the new JSON schema to Pydantic model conversion functionality

• Implemented thread-safe and concurrent processing tests to ensure the reliability of the new JSON schema to Pydantic conversion in multi-threaded environments

fern-api bot and others added 8 commits October 2, 2024 10:00
@fern-api fern-api bot requested a review from a team as a code owner October 16, 2024 13:05
@robot-ci-heartex
Copy link
Collaborator

Follow Merge downstream workflow has been failed.

Workflow run

@robot-ci-heartex
Copy link
Collaborator

Follow Merge downstream workflow has been failed.

Workflow run

@robot-ci-heartex
Copy link
Collaborator

Follow Merge downstream workflow has been failed.

Workflow run

1 similar comment
@robot-ci-heartex
Copy link
Collaborator

Follow Merge downstream workflow has been failed.

Workflow run

@robot-ci-heartex
Copy link
Collaborator

Follow Merge downstream workflow has been failed.

Workflow run

@robot-ci-heartex
Copy link
Collaborator

Follow Merge downstream workflow has been failed.

Workflow run

@robot-ci-heartex
Copy link
Collaborator

Follow Merge downstream workflow has been failed.

Workflow run

@niklub niklub merged commit e940721 into master Oct 21, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants