Closed ppalaga closed 2 months ago
/cc @radcortez (config)
I have an idea how to fix this
The same issue exists for quarkus.kafka.devservices.topic-partitions
that is a Map<String,Integer>
. Here is the old json:
{
"configDocKey": {
"type": "`Map<String,Integer>`",
"key": ".topic-partitions",
"additionalKeys": [],
"configDoc": "The topic-partition pairs to create in the Dev Services Kafka broker. After the broker is started, given topics with partitions are created, skipping already existing topics. For example, `quarkus.kafka.devservices.topic-partitions.test=2` will create a topic named `test` with 2 partitions.\n\nThe topic creation will not try to re-partition existing topics with different number of partitions.",
"withinAMap": true,
"defaultValue": "",
"javaDocSiteLink": "",
"docMapKey": "topic-partitions",
"configPhase": "BUILD_TIME",
"acceptedValues": null,
"optional": true,
"list": false,
"passThroughMap": true,
"withinAConfigGroup": true,
"topLevelGrouping": "",
"since": null,
"environmentVariable": "_TOPIC_PARTITIONS",
"enum": false
}
},
So I am going to fix this for all maps whose value type is either String or some primitive type wrapper.
Describe the bug
We have a config property in Quarkus CXF defined as follows:
Before the recent refactoring of
quarkus-extension-processor
, the metadata was produced with"optional": true
intarget/asciidoc/generated/config/all-configuration-roots-generated-doc/io.quarkiverse.cxf.ws.security.CxfWsSecurityConfig
:After the refactoring, the
target/quarkus-config-doc/quarkus-config-model.yaml
file is produced without"optional": true
:Expected behavior
Freeform Map<String,String> configuration properties should be always considered optional - same like before the refactoring. Therefore
"optional": true
should be present in the metadata.Actual behavior
"optional": true
is missing in the metadata.How to Reproduce?
Rebuild
quarkus-agroal
in Quarkus source tree and checkquarkus.datasource.jdbc.additional-jdbc-properties
in itstarget/quarkus-config-doc/quarkus-config-model.yaml
.Output of
uname -a
orver
No response
Output of
java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response