-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
[elm] Import types in operations #2488
Conversation
And stringify UUIDs. Fixes OpenAPITools#2484.
👍 Thanks for opening this issue! The team will review the labels and make any necessary changes. |
Wow, awesome! 😊 I can try out, if it works for our project, as soon as the fix is available with |
hasUuid = hasUuid | ||
|| op.queryParams.stream().filter(param -> param.isUuid).findAny().isPresent() | ||
|| op.pathParams.stream().filter(param -> param.isUuid).findAny().isPresent() | ||
|| op.headerParams.stream().filter(param -> param.isUuid).findAny().isPresent(); |
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.
Not sure about the types, but you can probably combine all params (query, path, header) into a single collection or stream first, and filter afterwards only once to reduce duplication?
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.
You're absolutely right this isn't very clean. I've 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.
👍
Could be merged :) @wing328 |
And stringify UUIDs. Fixes #2484.
PR checklist
./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
,./bin/openapi3/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\
.master
,. Default:3.4.x
,4.0.x
master
.Description of the PR
cc @wing328