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

fix(cli): docs generation now preserves original model schema names. #5255

Merged
merged 5 commits into from
Nov 22, 2024

Conversation

eyw520
Copy link
Contributor

@eyw520 eyw520 commented Nov 22, 2024

Description

Fix issue where docs generation fails when presented non-alphanumeric object schemas in non-discriminated unions.

Changes Made

  • Add --preserve-schemas flag to enable docs fern-definition generation
  • fern generate --docs now preserves schemas when generating IR for docs.

Testing

  • Manual testing completed
  • Unit tests added/updated

Copy link

github-actions bot commented Nov 22, 2024

Copy link
Member

@dsinghvi dsinghvi left a comment

Choose a reason for hiding this comment

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

Would be great to add a fixture for this in openapi-ir-to-fern-tests!

@eyw520 eyw520 merged commit bcc0a17 into main Nov 22, 2024
59 checks passed
@eyw520 eyw520 deleted the eden/docs-schema-fix branch November 22, 2024 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants