Skip to content
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

Conversation

brunolellis
Copy link
Contributor

This feature exposes Swagger tryItOutEnabled configuration property (doc)

@brunolellis brunolellis changed the title expose Swagger configuration tryItOutEnabled property Expose Swagger configuration "tryItOutEnabled" property Oct 9, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
Member

@MikeEdgar MikeEdgar left a 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.

@MikeEdgar MikeEdgar added this to the 3.7.0 milestone Oct 9, 2023
@@ -240,4 +240,17 @@ void testCreateWithSyntaxHighlightObject() throws IOException {

assertTrue(s.contains("syntaxHighlight: { activated: true, theme: \"monokai\" },"));
}

@Test
void testCreateWithTryItOutEnabledBoolean() throws IOException {
Copy link
Member

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.

Copy link
Member

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 {
Copy link
Member

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.

@phillip-kruger phillip-kruger merged commit ef2f847 into smallrye:main Oct 9, 2023
8 checks passed
@brunolellis brunolellis deleted the feature/expose-tryitoutenabled-property branch October 9, 2023 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants