mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-19 20:27:06 +00:00
[Java-Spring] add comment to EnumConverterConfiguration mustache file (#21598)
* [java-spring] provide a clarifying comment for the generated EnumConverterConfiguration class * update samples --------- Co-authored-by: Chris Gual <cgual@omnidian.com>
This commit is contained in:
@@ -12,6 +12,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "{{configPackage}}.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -6,6 +6,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -6,6 +6,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
@@ -7,6 +7,13 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
|
||||
/**
|
||||
* This class provides Spring Converter beans for the enum models in the OpenAPI specification.
|
||||
*
|
||||
* By default, Spring only converts primitive types to enums using Enum::valueOf, which can prevent
|
||||
* correct conversion if the OpenAPI specification is using an `enumPropertyNaming` other than
|
||||
* `original` or the specification has an integer enum.
|
||||
*/
|
||||
@Configuration(value = "org.openapitools.configuration.enumConverterConfiguration")
|
||||
public class EnumConverterConfiguration {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user