Skip to content

Commit 7519124

Browse files
committed
Updated the documentation
1 parent 4463f97 commit 7519124

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

docs/modules/ROOT/pages/client.adoc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,7 @@ quarkus.openapi-generator.codegen.spec.my_spec_yml.type-mappings.DateTime=Instan
144144
quarkus.openapi-generator.codegen.spec.my_spec_yml.import-mappings.Instant=java.time.Instant
145145
----
146146

147-
If you have an object you want to map to an datatype, you can use the schema mappings. For instance, if your schema is based
148-
on `java.Time.YearMonth`, it will be mapped to an string when generating. If you want to convert the object `YearMonth`then
149-
you can use the following settings:
150-
151-
[source,properties]
152-
----
153-
quarkus.openapi-generator.codegen.spec.my_spec_yml.schema-mappings.YearMonth=java.time.YearMonth
154-
----
155-
156-
It's also possible to only use a type mapping with a fully qualified name, for instance `quarkus.openapi-generator.codegen.spec.my_spec_yml.type-mappings.File=java.io.InputStream`. For more information and a list of all types see the OpenAPI generator documentation on https://openapi-generator.tech/docs/usage/#type-mappings-and-import-mappings[Type Mappings and Import Mappings].
147+
It's also possible to only use a type mapping with a fully qualified name, for instance `quarkus.openapi-generator.codegen.spec.my_spec_yml.type-mappings.File=java.io.InputStream`. For more information and a list of all types see the OpenAPI generator documentation on https://openapi-generator.tech/docs/usage/#type-mappings-and-import-mappings[Type Mappings and Import Mappings] and https://openapi-generator.tech/docs/customization#schema-mapping[Schema mapping].
157148

158149
See the module https://github.com/quarkiverse/quarkus-openapi-generator/tree/main/integration-tests/type-mapping[type-mapping] for an example of how to use this feature.
159150

0 commit comments

Comments
 (0)