From 01584fed76e72dbc329e4fdb4c4fd4d9a77682d4 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Tue, 14 Jan 2025 14:26:24 +0800 Subject: [PATCH] better formnat --- .../codegen/utils/ModelUtils.java | 46 +++++++++---------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java index dc8927bac2b..362ff1d61b0 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java @@ -426,18 +426,18 @@ public class ModelUtils { * A ObjectSchema differs from a MapSchema in the following way: * - An ObjectSchema is not extensible, i.e. it has a fixed number of properties. * - A MapSchema is an object that can be extended with an arbitrary set of properties. - * The payload may include dynamic properties. + * The payload may include dynamic properties. *

* For example, an OpenAPI schema is considered an ObjectSchema in the following scenarios: *

*

* type: object - * additionalProperties: false - * properties: - * name: - * type: string - * address: - * type: string + * additionalProperties: false + * properties: + * name: + * type: string + * address: + * type: string * * @param schema the OAS schema * @return true if the specified schema is an Object schema. @@ -527,7 +527,7 @@ public class ModelUtils { * A MapSchema differs from an ObjectSchema in the following way: * - An ObjectSchema is not extensible, i.e. it has a fixed number of properties. * - A MapSchema is an object that can be extended with an arbitrary set of properties. - * The payload may include dynamic properties. + * The payload may include dynamic properties. *

* Note that isMapSchema returns true for a composed schema (allOf, anyOf, oneOf) that also defines * additionalproperties. @@ -840,21 +840,21 @@ public class ModelUtils { * Examples: *

* components: - * schemas: - * arbitraryObject: - * type: object - * description: This is a free-form object. - * The value must be a map of strings to values. The value cannot be 'null'. - * It cannot be array, string, integer, number. - * arbitraryNullableObject: - * type: object - * description: This is a free-form object. - * The value must be a map of strings to values. The value can be 'null', - * It cannot be array, string, integer, number. - * nullable: true - * arbitraryTypeValue: - * description: This is NOT a free-form object. - * The value can be any type except the 'null' value. + * schemas: + * arbitraryObject: + * type: object + * description: This is a free-form object. + * The value must be a map of strings to values. The value cannot be 'null'. + * It cannot be array, string, integer, number. + * arbitraryNullableObject: + * type: object + * description: This is a free-form object. + * The value must be a map of strings to values. The value can be 'null', + * It cannot be array, string, integer, number. + * nullable: true + * arbitraryTypeValue: + * description: This is NOT a free-form object. + * The value can be any type except the 'null' value. * * @param schema potentially containing a '$ref' * @param openAPI document containing the Schema.