-
Notifications
You must be signed in to change notification settings - Fork 89
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
Expose Swagger configuration "tryItOutEnabled" property #1606
Expose Swagger configuration "tryItOutEnabled" property #1606
Conversation
Kudos, SonarCloud Quality Gate passed! |
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.
LGTM, thanks @brunolellis .
@phillip-kruger , I'll leave for you to merge in case you spot anything I didn't with the UI.
@@ -240,4 +240,17 @@ void testCreateWithSyntaxHighlightObject() throws IOException { | |||
|
|||
assertTrue(s.contains("syntaxHighlight: { activated: true, theme: \"monokai\" },")); | |||
} | |||
|
|||
@Test | |||
void testCreateWithTryItOutEnabledBoolean() throws IOException { |
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.
The default for tryItOut
is enabled (see https://swagger.io/docs/open-source-tools/swagger-ui/usage/configuration/) so I would rather test false
or disabled
.
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.
The test only test that the value is set, so maybe this is actually fine.
@@ -240,4 +240,17 @@ void testCreateWithSyntaxHighlightObject() throws IOException { | |||
|
|||
assertTrue(s.contains("syntaxHighlight: { activated: true, theme: \"monokai\" },")); | |||
} | |||
|
|||
@Test | |||
void testCreateWithTryItOutEnabledBoolean() throws IOException { |
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.
The test only test that the value is set, so maybe this is actually fine.
This feature exposes Swagger
tryItOutEnabled
configuration property (doc)