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

Merged
merged 21 commits into from
Sep 3, 2024
Merged

Hub Types #758

merged 21 commits into from
Sep 3, 2024

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

This comment was marked as resolved.

zsimjee
zsimjee previously approved these changes May 8, 2024
@CalebCourier

This comment was marked as resolved.

@CalebCourier CalebCourier marked this pull request as ready for review August 29, 2024 14:45
@dtam dtam merged commit 6bb5155 into main Sep 3, 2024
12 checks passed
@dtam dtam deleted the hub-types-main branch September 3, 2024 18:14
@zsimjee zsimjee added this to the v0.5.7 Release Tracker milestone Sep 4, 2024
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.

4 participants