-
Notifications
You must be signed in to change notification settings - Fork 56
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
Include validation in the asyncapi.http.proxy
generator
#574
Include validation in the asyncapi.http.proxy
generator
#574
Conversation
Message firstMessage = messages.entrySet().stream().findFirst().get().getValue(); | ||
String contentType = MessageView.of(asyncApi.components.messages, firstMessage).contentType(); | ||
if (APPLICATION_JSON.equals(contentType)) | ||
if (APPLICATION_JSON.equals(resolveContentType())) |
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.
I think we need a pattern matcher here to cover all the possibilities for json
messages, as there are many more than just application/json
.
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.
done, pls chk
Description
Include validation in the generate command in the
asyncapi.http.proxy
templateFixes #460