We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7fb3b2 commit 735d5adCopy full SHA for 735d5ad
1 file changed
modules/openapi-generator/src/main/resources/JavaSpring/converter.mustache
@@ -12,6 +12,13 @@ import org.springframework.context.annotation.Bean;
12
import org.springframework.context.annotation.Configuration;
13
import org.springframework.core.convert.converter.Converter;
14
15
+/**
16
+ * This class provides Spring Converter beans for the enum models in the OpenAPI specification.
17
+ *
18
+ * By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
19
+ * correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
20
+ * `original` or the specification has an integer enum.
21
+ */
22
@Configuration(value = "{{configPackage}}.enumConverterConfiguration")
23
public class EnumConverterConfiguration {
24
0 commit comments