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 ref name contains recursive brackets '[]' #199

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

qdongxu
Copy link
Contributor

@qdongxu qdongxu commented Jan 4, 2024

PR #195 fixed ISSUE #189. But regex matched a shorter string when a generic parameter is an slice( that means there's embedded brackets).

And the expression is more complex when the generic parameter is another generic type.

Propose to use a full path name as the name is used as an ID and reference in the yaml. Readability is trivial.

PR danielgtaylor#195 fixed ISSUE danielgtaylor#198. But regex matched a shorter string when a generic parammeter is an slice( that means there's embedded brackets).
@qdongxu qdongxu changed the title fix PR #195 fix PR #195 and ISSUE #198 Jan 4, 2024
@qdongxu qdongxu changed the title fix PR #195 and ISSUE #198 fix ref name contains recursive brackets '[]' Jan 4, 2024
@danielgtaylor
Copy link
Owner

@qdongxu thanks, this is unfortunately more complex than I had originally realized. I like your proposal but disagree that the readability of the naming is trivial because these names get directly used in generated SDKs as class/struct names. If at all possible I really want to keep them nice, so I created #200. Please check that out and see if it covers all your use cases and I'll merge and push a new release ASAP.

@danielgtaylor danielgtaylor merged commit c55a279 into danielgtaylor:main Jan 5, 2024
1 check failed
@qdongxu
Copy link
Contributor Author

qdongxu commented Jan 8, 2024

@danielgtaylor thanks for you quick fix. The new solution works perfect. And I got a bonus from the v2.2.0 release: array from the query parameter. thanks for such a quick release.

@qdongxu qdongxu deleted the fullname branch January 8, 2024 06:12
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