Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/docs/asciidoc/faq.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,19 @@ springdoc.pathsToMatch=/v1, /api/balance/**
springdoc.packagesToScan=package1, package2
----

=== How can I set Swagger properties programmatically?

These can be set by creating a `swaggerUiConfig` bean as follows:

---
@Bean
fun swaggerUiConfig(config: SwaggerUiConfigProperties): SwaggerUiConfigProperties {
config.showCommonExtensions = true
config.queryConfigEnabled = true
return config
}
---

=== How can I ignore some field of model ?
* You can use the following annotation on the top of the field that you want to hide:
* `@Schema(hidden = true)`
Expand Down