-
Notifications
You must be signed in to change notification settings - Fork 280
Use input file OpenApi format / version as the default output format / version in Hidi #658
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
Use input file OpenApi format / version as the default output format / version in Hidi #658
Conversation
MaggieKimani1
left a comment
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.
Should we do the same for OpenApi version too?
I think we would want to. cc @darrelmiller |
| string input, | ||
| FileInfo output, | ||
| OpenApiSpecVersion version, | ||
| OpenApiFormat format, |
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.
Try to use OpenApiFormat? (nullable OpenApiFormat) so that you can distinguish between being sent a parameter or not.
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.
@darrelmiller that's a good suggestion. I adopted it. Thank you.
93a31f7 to
03ab201
Compare
03ab201 to
f1c3c31
Compare
@MaggieKimani1 @darrelmiller this has been implemented. Thank you. |
f1c3c31 to
4e0639f
Compare
bf00ec7 to
a06ab0c
Compare
Issue: #651
The current
transformcommand in Hidi defaults toJSONas the output format when no explicit format is specified. This is not the intended behaviour in most cases.This PR improves the
transformcommand by using the default input file format and OpenApi version as the output format and version when no format or version is explicitly specified.