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

refactor(api): refactor core to handle HAR generation for code snippets #785

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

erunion
Copy link
Member

@erunion erunion commented Oct 24, 2023

🧰 Changes

Slightly refactors the work I did in #783 to remove our dependency on @readme/oas-to-har in api. Because we already depend on this library in core it's easier to have a method for generating a HAR object from the spec we're using there instead of having oas-to-har as a full dependency in api.

Proof that this all still works:

Screen Shot 2023-10-24 at 2 49 24 PM

@erunion erunion added refactor Issues about tackling technical debt area:api Issues related to the `api` CLI, which builds the SDKs labels Oct 24, 2023
@erunion erunion marked this pull request as ready for review October 24, 2023 22:54
@@ -84,8 +94,7 @@ export default class APICore {
}
}

// @ts-expect-error `this.auth` typing is off. FIXME
Copy link
Member

Choose a reason for hiding this comment

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

oh hell yeah

Copy link
Member Author

Choose a reason for hiding this comment

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

turns out the problem was that i wasn't casting some numbers as a string with String()

@erunion erunion merged commit 13a70ae into main Oct 24, 2023
5 checks passed
@erunion erunion deleted the chore/refactor-har-handling branch October 24, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:api Issues related to the `api` CLI, which builds the SDKs refactor Issues about tackling technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants