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 generation of parameters with a dot in the description #986

Merged
merged 1 commit into from
Nov 12, 2022

Conversation

axelhzf
Copy link
Contributor

@axelhzf axelhzf commented Nov 12, 2022

Changes

What does this PR change? Link to any related issue(s).

Fixes the generation of parameters containing a . in the description. See #985

How to Review

How can a reviewer review your changes? What should be kept in mind for this review?

Checklist

  • Unit tests updated
  • README updated
  • examples/ directory updated (if applicable)

@@ -20,7 +20,7 @@ describe("Paths Object", () => {
test("basic", () => {
const schema: PathsObject = {
"/api/v1/user/{user_id}": {
parameters: [{ name: "page", in: "query", schema: { type: "number" } }],
parameters: [{ name: "page", in: "query", schema: { type: "number" }, description: "Page number." }],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if I should create a new test instead of updating an existing one

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah that’s always a tough one and there’s no right answer. I’d say this one is fine here but if we started collecting a lot of these we should break them out into its own test.

@drwpow drwpow merged commit 6be2111 into openapi-ts:main Nov 12, 2022
@drwpow
Copy link
Contributor

drwpow commented Nov 12, 2022

@all-contributors please add @axelhzf for code, bug, test

@allcontributors
Copy link
Contributor

@drwpow

I've put up a pull request to add @axelhzf! 🎉

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.

2 participants