-
-
Notifications
You must be signed in to change notification settings - Fork 377
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(core): inconsistent kebab casing comparison #937
fix(core): inconsistent kebab casing comparison #937
Conversation
Fixing an issue where operationNames were being filtered out and not provided to builder.footer. generateTargetTags returns kebab-cased tags which are then compared to operation tags which have not been run through the kebab routine. map all operation tags with kebab prior to checking that the tags include a tag.
Someone is attempting to deploy a commit to a Personal Account owned by @anymaniax on Vercel. @anymaniax first needs to authorize it. |
Hello @fergiektid, thanks for the pr. We should kebab both side to be sure no? |
Fixing an issue where operationNames were being filtered out and not provided to builder.footer. generateTargetTags returns kebab-cased tags which are then compared to operation tags which have not been run through the kebab routine. map all operation tags with kebab prior to checking that the tags include a tag. Added some additional unit tests to ensure that the kebab routine is Idempotent.
Yes, In this specific instance, I don't think we need to because it's already been called for the right hand side. But I don't see any harm in doing it again as a safety net against future refactoring. I've added a test for the kebab case routine to ensure that the kebab routine remains Idempotent, since we are potentially calling it multiple times with input which has already been through the routine. I have updated the PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Can you resolve the conflict pls? |
Status
READY
Fix #936
Description
This PR aims to resolve issue #936. Which causes potentially invalid typescript to be generated by Orval. Need to ensure that we are comparing like for like when searching the array of tags for a specific tag.
Todos
Steps to Test or Reproduce
#936 (comment)