You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before the recent refactoring of quarkus-extension-processor, the metadata was produced with "optional": true in target/asciidoc/generated/config/all-configuration-roots-generated-doc/io.quarkiverse.cxf.ws.security.CxfWsSecurityConfig:
{
"configDocKey": {
"type": "`Map<String,String>`",
"key": "quarkus.cxf.client.\"client-name\".security.signature.properties",
"additionalKeys": [],
"configDoc": "The Crypto property configuration to use for signing, if `signature.crypto` is not set.\n\nExample\n\n[source,properties]\n----\n[prefix].signature.properties.\"org.apache.ws.security.crypto.provider\" =\norg.apache.ws.security.components.crypto.Merlin\n[prefix].signature.properties.\"org.apache.ws.security.crypto.merlin.keystore.password\" = password\n[prefix].signature.properties.\"org.apache.ws.security.crypto.merlin.file\" = certs/alice.jks\n----",
"withinAMap": true,
"defaultValue": "",
"javaDocSiteLink": "",
"docMapKey": "signature-properties",
"configPhase": "RUN_TIME",
"acceptedValues": null,
"optional": true,
"list": false,
"passThroughMap": true,
"withinAConfigGroup": true,
"topLevelGrouping": "quarkus.cxf",
"since": "2.5.0",
"environmentVariable": "QUARKUS_CXF_CLIENT__CLIENT_NAME__SECURITY_SIGNATURE_PROPERTIES",
"enum": false
}
},
After the refactoring, the target/quarkus-config-doc/quarkus-config-model.yaml file is produced without "optional": true:
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 check quarkus.datasource.jdbc.additional-jdbc-properties in its target/quarkus-config-doc/quarkus-config-model.yaml.
Output of uname -a or ver
No response
Output of java -version
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
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.
ppalaga
added a commit
to ppalaga/quarkus
that referenced
this issue
Aug 13, 2024
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
The text was updated successfully, but these errors were encountered: