diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 24803f481904..21e0c4cf818d 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -614,14 +614,6 @@ public String toDefaultValue(Schema p) { else return "True"; } - // include fallback to example, default defined as server only - // example is not defined as server only - if (p.getExample() != null) { - if (Boolean.valueOf(p.getExample().toString()) == false) - return "False"; - else - return "True"; - } } else if (ModelUtils.isDateSchema(p)) { // TODO } else if (ModelUtils.isDateTimeSchema(p)) { @@ -630,10 +622,6 @@ public String toDefaultValue(Schema p) { if (p.getDefault() != null) { return p.getDefault().toString(); } - // default numbers are not yet returned by v2 spec openAPI results - // https://github.com/swagger-api/swagger-parser/issues/971 - // include fallback to example, default defined as server only - // example is not defined as server only if (p.getExample() != null) { return p.getExample().toString(); } @@ -641,13 +629,6 @@ public String toDefaultValue(Schema p) { if (p.getDefault() != null) { return p.getDefault().toString(); } - // default integers are not yet returned by v2 spec openAPI results - // https://github.com/swagger-api/swagger-parser/issues/971 - // include fallback to example, default defined as server only - // example is not defined as server only - if (p.getExample() != null) { - return p.getExample().toString(); - } } else if (ModelUtils.isStringSchema(p)) { if (p.getDefault() != null) { if (Pattern.compile("\r\n|\r|\n").matcher((String) p.getDefault()).find()) @@ -655,23 +636,10 @@ public String toDefaultValue(Schema p) { else return "'" + p.getDefault() + "'"; } - // include fallback to example, default defined as server only - // example is not defined as server only - if (p.getExample() != null) { - if (Pattern.compile("\r\n|\r|\n").matcher((String) p.getExample()).find()) - return "'''" + p.getExample() + "'''"; - else - return "'" + p.getExample() + "'"; - } } else if (ModelUtils.isArraySchema(p)) { if (p.getDefault() != null) { return p.getDefault().toString(); } - // include fallback to example, default defined as server only - // example is not defined as server only - if (p.getExample() != null) { - return p.getExample().toString(); - } } return null; diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml index 835f696d0ff4..2de23983ffb3 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml @@ -1344,6 +1344,7 @@ definitions: uuid: type: string format: uuid + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 password: type: string format: password diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml index 65c9be07837b..4890407bacb1 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml @@ -1373,6 +1373,7 @@ components: uuid: type: string format: uuid + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 password: type: string format: password diff --git a/samples/client/petstore/go/go-petstore/api/openapi.yaml b/samples/client/petstore/go/go-petstore/api/openapi.yaml index 6ebfe6eae1a6..2b13b056b955 100644 --- a/samples/client/petstore/go/go-petstore/api/openapi.yaml +++ b/samples/client/petstore/go/go-petstore/api/openapi.yaml @@ -1422,6 +1422,7 @@ components: format: date-time type: string uuid: + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 format: uuid type: string password: diff --git a/samples/client/petstore/haskell-http-client/openapi.yaml b/samples/client/petstore/haskell-http-client/openapi.yaml index 6ebfe6eae1a6..2b13b056b955 100644 --- a/samples/client/petstore/haskell-http-client/openapi.yaml +++ b/samples/client/petstore/haskell-http-client/openapi.yaml @@ -1422,6 +1422,7 @@ components: format: date-time type: string uuid: + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 format: uuid type: string password: diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java index b601d282a764..ef62e9b33c27 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FormatTest.java index b601d282a764..ef62e9b33c27 100644 --- a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java index b601d282a764..ef62e9b33c27 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java index b601d282a764..ef62e9b33c27 100644 --- a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FormatTest.java index ab9b82050361..29de7da0c526 100644 --- a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/FormatTest.java @@ -286,7 +286,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java index c7baf149df5e..8a678061b2f1 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FormatTest.java index b601d282a764..ef62e9b33c27 100644 --- a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java index 935f4ade8b5c..48420300c825 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java @@ -307,7 +307,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java index 499201bba7bc..07a6e25ae52a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -303,7 +303,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java index 499201bba7bc..07a6e25ae52a 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java @@ -303,7 +303,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java index b601d282a764..ef62e9b33c27 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java index 4510c02d52e1..7bdc2afc9a4f 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/FormatTest.java @@ -318,7 +318,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java index b601d282a764..ef62e9b33c27 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java index 23f91ae8ed0c..403b2ff5e6ac 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java @@ -303,7 +303,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FormatTest.java index b26c3ba3c2ad..7f7a81441a94 100644 --- a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/FormatTest.java @@ -297,7 +297,7 @@ public FormatTest uuid(UUID uuid) { * @return uuid **/ @Valid - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FormatTest.java index 55e02037fe00..3bc23ceafa5b 100644 --- a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/FormatTest.java @@ -297,7 +297,7 @@ public FormatTest uuid(UUID uuid) { * @return uuid **/ @Valid - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java index 55e02037fe00..3bc23ceafa5b 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/FormatTest.java @@ -297,7 +297,7 @@ public FormatTest uuid(UUID uuid) { * @return uuid **/ @Valid - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java index 499201bba7bc..07a6e25ae52a 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -303,7 +303,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java index 499201bba7bc..07a6e25ae52a 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java @@ -303,7 +303,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java index 499201bba7bc..07a6e25ae52a 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -303,7 +303,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java index f3e785d92cb9..b26918ae74c7 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java index c7baf149df5e..8a678061b2f1 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/FormatTest.java @@ -287,7 +287,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid **/ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; } diff --git a/samples/client/petstore/python/docs/Pet.md b/samples/client/petstore/python/docs/Pet.md index f9ea079075d1..9e15090300f8 100644 --- a/samples/client/petstore/python/docs/Pet.md +++ b/samples/client/petstore/python/docs/Pet.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**name** | **str** | | [default to 'doggie'] +**name** | **str** | | **photo_urls** | **list[str]** | | **tags** | [**list[Tag]**](Tag.md) | | [optional] **status** | **str** | pet status in the store | [optional] diff --git a/samples/client/petstore/python/docs/TypeHolderExample.md b/samples/client/petstore/python/docs/TypeHolderExample.md index 1a1535f4dee3..844b1a394c67 100644 --- a/samples/client/petstore/python/docs/TypeHolderExample.md +++ b/samples/client/petstore/python/docs/TypeHolderExample.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**string_item** | **str** | | [default to 'what'] +**string_item** | **str** | | **number_item** | **float** | | [default to 1.234] -**integer_item** | **int** | | [default to -2] -**bool_item** | **bool** | | [default to True] -**array_item** | **list[int]** | | [default to [0, 1, 2, 3]] +**integer_item** | **int** | | +**bool_item** | **bool** | | +**array_item** | **list[int]** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/python/docs/XmlItem.md b/samples/client/petstore/python/docs/XmlItem.md index 929e09ef5294..e389f5a06c0f 100644 --- a/samples/client/petstore/python/docs/XmlItem.md +++ b/samples/client/petstore/python/docs/XmlItem.md @@ -3,33 +3,33 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attribute_string** | **str** | | [optional] [default to 'string'] +**attribute_string** | **str** | | [optional] **attribute_number** | **float** | | [optional] [default to 1.234] -**attribute_integer** | **int** | | [optional] [default to -2] -**attribute_boolean** | **bool** | | [optional] [default to True] +**attribute_integer** | **int** | | [optional] +**attribute_boolean** | **bool** | | [optional] **wrapped_array** | **list[int]** | | [optional] -**name_string** | **str** | | [optional] [default to 'string'] +**name_string** | **str** | | [optional] **name_number** | **float** | | [optional] [default to 1.234] -**name_integer** | **int** | | [optional] [default to -2] -**name_boolean** | **bool** | | [optional] [default to True] +**name_integer** | **int** | | [optional] +**name_boolean** | **bool** | | [optional] **name_array** | **list[int]** | | [optional] **name_wrapped_array** | **list[int]** | | [optional] -**prefix_string** | **str** | | [optional] [default to 'string'] +**prefix_string** | **str** | | [optional] **prefix_number** | **float** | | [optional] [default to 1.234] -**prefix_integer** | **int** | | [optional] [default to -2] -**prefix_boolean** | **bool** | | [optional] [default to True] +**prefix_integer** | **int** | | [optional] +**prefix_boolean** | **bool** | | [optional] **prefix_array** | **list[int]** | | [optional] **prefix_wrapped_array** | **list[int]** | | [optional] -**namespace_string** | **str** | | [optional] [default to 'string'] +**namespace_string** | **str** | | [optional] **namespace_number** | **float** | | [optional] [default to 1.234] -**namespace_integer** | **int** | | [optional] [default to -2] -**namespace_boolean** | **bool** | | [optional] [default to True] +**namespace_integer** | **int** | | [optional] +**namespace_boolean** | **bool** | | [optional] **namespace_array** | **list[int]** | | [optional] **namespace_wrapped_array** | **list[int]** | | [optional] -**prefix_ns_string** | **str** | | [optional] [default to 'string'] +**prefix_ns_string** | **str** | | [optional] **prefix_ns_number** | **float** | | [optional] [default to 1.234] -**prefix_ns_integer** | **int** | | [optional] [default to -2] -**prefix_ns_boolean** | **bool** | | [optional] [default to True] +**prefix_ns_integer** | **int** | | [optional] +**prefix_ns_boolean** | **bool** | | [optional] **prefix_ns_array** | **list[int]** | | [optional] **prefix_ns_wrapped_array** | **list[int]** | | [optional] diff --git a/samples/client/petstore/python/petstore_api/models/pet.py b/samples/client/petstore/python/petstore_api/models/pet.py index 3183f60c7971..d3c412f4a82b 100644 --- a/samples/client/petstore/python/petstore_api/models/pet.py +++ b/samples/client/petstore/python/petstore_api/models/pet.py @@ -48,7 +48,7 @@ class Pet(object): 'status': 'status' } - def __init__(self, id=None, category=None, name='doggie', photo_urls=None, tags=None, status=None): # noqa: E501 + def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None): # noqa: E501 """Pet - a model defined in OpenAPI""" # noqa: E501 self._id = None diff --git a/samples/client/petstore/python/petstore_api/models/type_holder_example.py b/samples/client/petstore/python/petstore_api/models/type_holder_example.py index 573354ab4d6e..dd4cd8cf202a 100644 --- a/samples/client/petstore/python/petstore_api/models/type_holder_example.py +++ b/samples/client/petstore/python/petstore_api/models/type_holder_example.py @@ -46,7 +46,7 @@ class TypeHolderExample(object): 'array_item': 'array_item' } - def __init__(self, string_item='what', number_item=1.234, integer_item=-2, bool_item=True, array_item=[0, 1, 2, 3]): # noqa: E501 + def __init__(self, string_item=None, number_item=1.234, integer_item=None, bool_item=None, array_item=None): # noqa: E501 """TypeHolderExample - a model defined in OpenAPI""" # noqa: E501 self._string_item = None diff --git a/samples/client/petstore/python/petstore_api/models/xml_item.py b/samples/client/petstore/python/petstore_api/models/xml_item.py index 28e6ff376770..f3b3782de433 100644 --- a/samples/client/petstore/python/petstore_api/models/xml_item.py +++ b/samples/client/petstore/python/petstore_api/models/xml_item.py @@ -94,7 +94,7 @@ class XmlItem(object): 'prefix_ns_wrapped_array': 'prefix_ns_wrapped_array' } - def __init__(self, attribute_string='string', attribute_number=1.234, attribute_integer=-2, attribute_boolean=True, wrapped_array=None, name_string='string', name_number=1.234, name_integer=-2, name_boolean=True, name_array=None, name_wrapped_array=None, prefix_string='string', prefix_number=1.234, prefix_integer=-2, prefix_boolean=True, prefix_array=None, prefix_wrapped_array=None, namespace_string='string', namespace_number=1.234, namespace_integer=-2, namespace_boolean=True, namespace_array=None, namespace_wrapped_array=None, prefix_ns_string='string', prefix_ns_number=1.234, prefix_ns_integer=-2, prefix_ns_boolean=True, prefix_ns_array=None, prefix_ns_wrapped_array=None): # noqa: E501 + def __init__(self, attribute_string=None, attribute_number=1.234, attribute_integer=None, attribute_boolean=None, wrapped_array=None, name_string=None, name_number=1.234, name_integer=None, name_boolean=None, name_array=None, name_wrapped_array=None, prefix_string=None, prefix_number=1.234, prefix_integer=None, prefix_boolean=None, prefix_array=None, prefix_wrapped_array=None, namespace_string=None, namespace_number=1.234, namespace_integer=None, namespace_boolean=None, namespace_array=None, namespace_wrapped_array=None, prefix_ns_string=None, prefix_ns_number=1.234, prefix_ns_integer=None, prefix_ns_boolean=None, prefix_ns_array=None, prefix_ns_wrapped_array=None): # noqa: E501 """XmlItem - a model defined in OpenAPI""" # noqa: E501 self._attribute_string = None diff --git a/samples/client/petstore/python/test/test_type_holder_example.py b/samples/client/petstore/python/test/test_type_holder_example.py index 64765f26d6ce..7a2621494857 100644 --- a/samples/client/petstore/python/test/test_type_holder_example.py +++ b/samples/client/petstore/python/test/test_type_holder_example.py @@ -30,12 +30,9 @@ def tearDown(self): def testTypeHolderExample(self): """Test TypeHolderExample""" - model = TypeHolderExample() - self.assertEqual(model.string_item, 'what') - self.assertEqual(model.number_item, 1.234) - self.assertEqual(model.integer_item, -2) - self.assertEqual(model.bool_item, True) - self.assertEqual(model.array_item, [0, 1, 2, 3]) + # FIXME: construct object with mandatory attributes with example values + # model = petstore_api.models.type_holder_example.TypeHolderExample() # noqa: E501 + pass if __name__ == '__main__': diff --git a/samples/openapi3/client/petstore/python/docs/Pet.md b/samples/openapi3/client/petstore/python/docs/Pet.md index f9ea079075d1..9e15090300f8 100644 --- a/samples/openapi3/client/petstore/python/docs/Pet.md +++ b/samples/openapi3/client/petstore/python/docs/Pet.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [optional] **category** | [**Category**](Category.md) | | [optional] -**name** | **str** | | [default to 'doggie'] +**name** | **str** | | **photo_urls** | **list[str]** | | **tags** | [**list[Tag]**](Tag.md) | | [optional] **status** | **str** | pet status in the store | [optional] diff --git a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py index 3183f60c7971..d3c412f4a82b 100644 --- a/samples/openapi3/client/petstore/python/petstore_api/models/pet.py +++ b/samples/openapi3/client/petstore/python/petstore_api/models/pet.py @@ -48,7 +48,7 @@ class Pet(object): 'status': 'status' } - def __init__(self, id=None, category=None, name='doggie', photo_urls=None, tags=None, status=None): # noqa: E501 + def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None): # noqa: E501 """Pet - a model defined in OpenAPI""" # noqa: E501 self._id = None diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FormatTest.java index 2849ff20ae81..970e4b2ebedb 100644 --- a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/FormatTest.java @@ -54,7 +54,7 @@ public class FormatTest { @ApiModelProperty(value = "") private Date dateTime; - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") private UUID uuid; @ApiModelProperty(required = true, value = "") diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java index 1052805de98e..9c36d26bf98c 100644 --- a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/FormatTest.java @@ -314,7 +314,7 @@ public FormatTest uuid(UUID uuid) { * @return uuid **/ @JsonProperty("uuid") - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; diff --git a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java index 6cb076965256..7d6362e23b2b 100644 --- a/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-jersey/src/gen/java/org/openapitools/model/FormatTest.java @@ -318,7 +318,7 @@ public FormatTest uuid(UUID uuid) { * @return uuid **/ @JsonProperty("uuid") - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java index 800fe24ff924..a7b9130b851b 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/FormatTest.java @@ -243,7 +243,7 @@ public FormatTest uuid(UUID uuid) { } - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") public UUID getUuid() { return uuid; diff --git a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml index 6bcd2b1a9b63..e19bfe47ee0f 100644 --- a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml @@ -1494,6 +1494,7 @@ components: format: date-time type: string uuid: + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 format: uuid type: string password: diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java index 800fe24ff924..a7b9130b851b 100644 --- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/FormatTest.java @@ -243,7 +243,7 @@ public FormatTest uuid(UUID uuid) { } - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @JsonProperty("uuid") public UUID getUuid() { return uuid; diff --git a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml index 6bcd2b1a9b63..e19bfe47ee0f 100644 --- a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml +++ b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml @@ -1494,6 +1494,7 @@ components: format: date-time type: string uuid: + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 format: uuid type: string password: diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FormatTest.java index 5f60f9219ac3..41c3e2f15e10 100644 --- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/FormatTest.java @@ -312,7 +312,7 @@ public FormatTest uuid(UUID uuid) { * @return uuid **/ @JsonProperty("uuid") - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FormatTest.java index 5f60f9219ac3..41c3e2f15e10 100644 --- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/FormatTest.java @@ -312,7 +312,7 @@ public FormatTest uuid(UUID uuid) { * @return uuid **/ @JsonProperty("uuid") - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java index 5f60f9219ac3..41c3e2f15e10 100644 --- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/FormatTest.java @@ -312,7 +312,7 @@ public FormatTest uuid(UUID uuid) { * @return uuid **/ @JsonProperty("uuid") - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java index 5f60f9219ac3..41c3e2f15e10 100644 --- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/FormatTest.java @@ -312,7 +312,7 @@ public FormatTest uuid(UUID uuid) { * @return uuid **/ @JsonProperty("uuid") - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") public UUID getUuid() { return uuid; diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java index e53660b6a946..7ce82141e038 100644 --- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java index a4d1863fad35..ba39164b5aec 100644 --- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java index ef025eda014d..f43bc1d659e9 100644 --- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java index ef025eda014d..f43bc1d659e9 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java index e53660b6a946..7ce82141e038 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java index ef025eda014d..f43bc1d659e9 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java index e53660b6a946..7ce82141e038 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java index e53660b6a946..7ce82141e038 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml index efdfdac7837a..a4da8e432b8c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml +++ b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml @@ -1554,6 +1554,7 @@ components: format: date-time type: string uuid: + example: 72f98069-206d-4f12-9f12-3d1e525a8e84 format: uuid type: string password: diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java index e53660b6a946..7ce82141e038 100644 --- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java index bfbf0224efc7..9a402df17ef3 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java index e53660b6a946..7ce82141e038 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/FormatTest.java @@ -304,7 +304,7 @@ public FormatTest uuid(UUID uuid) { * Get uuid * @return uuid */ - @ApiModelProperty(value = "") + @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @Valid