Skip to content

Commit 2633737

Browse files
authored
Merge pull request #31 from knyttl/master
Add FAQ record for setting up swagger properties programmatically
2 parents e658da2 + 4651c2c commit 2633737

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/docs/asciidoc/faq.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,19 @@ springdoc.pathsToMatch=/v1, /api/balance/**
130130
springdoc.packagesToScan=package1, package2
131131
----
132132

133+
=== How can I set Swagger properties programmatically?
134+
135+
These can be set by creating a `swaggerUiConfig` bean as follows:
136+
137+
---
138+
@Bean
139+
fun swaggerUiConfig(config: SwaggerUiConfigProperties): SwaggerUiConfigProperties {
140+
config.showCommonExtensions = true
141+
config.queryConfigEnabled = true
142+
return config
143+
}
144+
---
145+
133146
=== How can I ignore some field of model ?
134147
* You can use the following annotation on the top of the field that you want to hide:
135148
* `@Schema(hidden = true)`

0 commit comments

Comments
 (0)