Skip to content

Fix bugs with remote $refs, add cwd option for JSON schema parsing #1308

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

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

drwpow
Copy link
Contributor

@drwpow drwpow commented Aug 19, 2023

Changes

Fixes #938, Partially addresses #1307 by fixing remote $ref generation and adding the ability to specify cwd for dynamic JSON root schemas

How to Review

  • Tests added; tests should pass

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

@changeset-bot
Copy link

changeset-bot bot commented Aug 19, 2023

🦋 Changeset detected

Latest commit: e6fa821

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-typescript Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 19, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: e6fa821
Status: ✅  Deploy successful!
Preview URL: https://23f396f9.openapi-ts.pages.dev
Branch Preview URL: https://fix-remote-refs.openapi-ts.pages.dev

View logs

@@ -705,7 +705,7 @@ export interface external {
* @example 50a994b6-c303-438f-9495-7e896cfe6b08
*/
cluster_uuid: string;
}
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Minor fix of missing semi

@drwpow drwpow merged commit ebb73b6 into main Aug 19, 2023
@drwpow drwpow deleted the fix/remote-refs branch August 19, 2023 19:09
@github-actions github-actions bot mentioned this pull request Aug 19, 2023
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.

Not generating types for remote $ref in path parameters
1 participant