Skip to content

Generate Pydantic models from Destinations API spec, validate on release - #1225

Draft
Regan-Koopmans wants to merge 1 commit into
mainfrom
poc/pydantic-models
Draft

Generate Pydantic models from Destinations API spec, validate on release#1225
Regan-Koopmans wants to merge 1 commit into
mainfrom
poc/pydantic-models

Conversation

@Regan-Koopmans

Copy link
Copy Markdown
Contributor

PR Checklist:

  • This PR is as small and focused as possible
  • If this PR includes proposed changes for inclusion in the changelog, the title of this PR summarizes those changes and is ready for inclusion in the Changelog.
  • I have updated docstrings for function changes and docs in the 'docs' folder for user interface / behavior changes
  • This PR does not break any examples or I have updated them

@Regan-Koopmans Regan-Koopmans self-assigned this Sep 9, 2026
@Regan-Koopmans
Regan-Koopmans force-pushed the poc/pydantic-models branch 3 times, most recently from 97809fd to 26efe67 Compare September 9, 2026 11:57
- Generate Pydantic models from the Destinations API OpenAPI spec (planet/api_models/destinations.py)
- Use Destination/DestinationsResponse models as return types in DestinationsClient
- Add pre-release model validation in tests/drift/validate_models.py
- Add nox sessions: generate_models, validate_models
- Wire validate_models into the publish-pypi CI workflow
- Scope everything to the Destinations API for now; other APIs noted as TODO
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.

1 participant