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

Hub Types #758

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

Hub Types #758

wants to merge 7 commits into from

Conversation

CalebCourier
Copy link
Collaborator

@CalebCourier CalebCourier commented May 8, 2024

This PR swaps out the internal ModuleManifest class and it's children for the shared Manifest class from hub-types.

Before this PR can be opened completely, the new packages will need to be published. We will also need to validate and fix and manifests since the auto-generated Manifest class is a Pydantic Model and therefore more strict about structure.

DEPENDS ON:

This PR contains breaking changes!
Note that the generated classes for the hub-types has a strict dependency on Pydantic 2.x (see the generator for more details: https://openapi-generator.tech/docs/generators/python). That means that guardrails will lose support for Pydantic 1.x once these changes are merged. Dropping support for 1.x was already planned, this just moved up the timeline. Since the old code and classes are compatibile with new manifest schema, these changes can wait until the next minor (pre-1.x-major) release.

@CalebCourier CalebCourier mentioned this pull request May 8, 2024
@CalebCourier
Copy link
Collaborator Author

This PR requires that our manifest files be valid according to the schema described in https://github.com/guardrails-ai/interfaces/blob/main/schemas/hub/manifest.json. Any invalid manifest files must be updated before these changes are released.

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.

None yet

2 participants