Skip to content

Conversation

@wirthual
Copy link
Collaborator

Fix client generation pipeline as seen in this run by explicitly setting meta type to poetry

Usage: openapi-python-client generate [OPTIONS]
Try 'openapi-python-client generate --help' for help.
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ Invalid value for '--meta' (env var: 'None'): <MetaType.POETRY: 'poetry'> is │
│ not one of 'none', 'poetry', 'setup', 'pdm'.                                 │
╰──────────────────────────────────────────────────────────────────────────────╯

Seems to be some enum/str problem.

@wirthual wirthual requested review from Copilot and michaelfeil June 21, 2025 17:17
Copy link

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 explicitly sets the --meta option to poetry for the OpenAPI Python client generation command to resolve the enum/str mismatch error.

  • Adds the --meta poetry flag to the client generation script

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Fixes the client generation pipeline by adding --meta poetry flag to the openapi-python-client generate command in libs/client_infinity/run_generate_with_hook.sh, resolving an enum/string type error in the metadata specification.

  • Adds explicit --meta poetry parameter to resolve the MetaType enum parsing error in the client generation workflow

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@codecov-commenter
Copy link

codecov-commenter commented Jun 21, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.47%. Comparing base (6b2dee3) to head (05368e0).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #603   +/-   ##
=======================================
  Coverage   79.47%   79.47%           
=======================================
  Files          43       43           
  Lines        3489     3489           
=======================================
  Hits         2773     2773           
  Misses        716      716           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@michaelfeil michaelfeil merged commit 3286e76 into main Jun 22, 2025
36 checks passed
@michaelfeil michaelfeil deleted the add-meta-type-to-generator branch June 22, 2025 22:47
Copy link
Owner

@michaelfeil michaelfeil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging

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