mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-10 22:52:46 +00:00
Fix bean validation for Collection and add unit test (#14736)
* Fix bean validation for Collection + uni test * Fix * Adapt examples * Fix comments * Merge master * Remove Bean validation for Maps * Remove @Valid from jakarta * Fix example * Fix comments * Fix springboot-3 example
This commit is contained in:
@@ -21,14 +21,6 @@ import static org.apache.commons.lang3.StringUtils.isNotEmpty;
|
||||
import static org.openapitools.codegen.utils.CamelizeOption.LOWERCASE_FIRST_LETTER;
|
||||
import static org.openapitools.codegen.utils.StringUtils.camelize;
|
||||
|
||||
import com.samskivert.mustache.Mustache;
|
||||
import io.swagger.v3.oas.models.Components;
|
||||
import io.swagger.v3.oas.models.OpenAPI;
|
||||
import io.swagger.v3.oas.models.Operation;
|
||||
import io.swagger.v3.oas.models.PathItem;
|
||||
import io.swagger.v3.oas.models.media.Schema;
|
||||
import io.swagger.v3.oas.models.servers.Server;
|
||||
|
||||
import java.io.File;
|
||||
import java.net.URL;
|
||||
import java.util.ArrayList;
|
||||
@@ -44,7 +36,7 @@ import java.util.Set;
|
||||
import java.util.regex.Matcher;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import io.swagger.v3.oas.models.tags.Tag;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.tuple.Pair;
|
||||
import org.openapitools.codegen.CliOption;
|
||||
import org.openapitools.codegen.CodegenConstants;
|
||||
@@ -78,6 +70,17 @@ import org.openapitools.codegen.utils.URLPathUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import com.samskivert.mustache.Mustache;
|
||||
|
||||
import io.swagger.v3.oas.models.Components;
|
||||
import io.swagger.v3.oas.models.OpenAPI;
|
||||
import io.swagger.v3.oas.models.Operation;
|
||||
import io.swagger.v3.oas.models.PathItem;
|
||||
import io.swagger.v3.oas.models.media.Schema;
|
||||
import io.swagger.v3.oas.models.parameters.Parameter;
|
||||
import io.swagger.v3.oas.models.servers.Server;
|
||||
import io.swagger.v3.oas.models.tags.Tag;
|
||||
|
||||
public class SpringCodegen extends AbstractJavaCodegen
|
||||
implements BeanValidationFeatures, PerformBeanValidationFeatures, OptionalFeatures, SwaggerUIFeatures {
|
||||
private final Logger LOGGER = LoggerFactory.getLogger(SpringCodegen.class);
|
||||
@@ -1196,4 +1199,60 @@ public class SpringCodegen extends AbstractJavaCodegen
|
||||
public void setRequestMappingMode(RequestMappingMode requestMappingMode) {
|
||||
this.requestMappingMode = requestMappingMode;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CodegenParameter fromParameter( final Parameter parameter, final Set<String> imports ) {
|
||||
CodegenParameter codegenParameter = super.fromParameter( parameter, imports );
|
||||
if(!isListOrSet(codegenParameter)){
|
||||
return codegenParameter;
|
||||
}
|
||||
codegenParameter.datatypeWithEnum = replaceBeanValidationCollectionType(codegenParameter.items, codegenParameter.datatypeWithEnum );
|
||||
codegenParameter.dataType = replaceBeanValidationCollectionType(codegenParameter.items, codegenParameter.dataType );
|
||||
return codegenParameter;
|
||||
}
|
||||
@Override
|
||||
public CodegenProperty fromProperty( String name, Schema p, boolean required, boolean schemaIsFromAdditionalProperties ) {
|
||||
CodegenProperty codegenProperty = super.fromProperty( name, p, required, schemaIsFromAdditionalProperties );
|
||||
if(!isListOrSet(codegenProperty)){
|
||||
return codegenProperty;
|
||||
}
|
||||
codegenProperty.datatypeWithEnum = replaceBeanValidationCollectionType(codegenProperty.items, codegenProperty.datatypeWithEnum );
|
||||
codegenProperty.dataType = replaceBeanValidationCollectionType(codegenProperty.items, codegenProperty.dataType );
|
||||
return codegenProperty;
|
||||
}
|
||||
|
||||
// The default validation applied for non-container and non-map types is sufficient for the SpringCodegen.
|
||||
// Maps are very complex for bean validation, so it's currently not supported.
|
||||
private static boolean isListOrSet(CodegenProperty codegenProperty) {
|
||||
return codegenProperty.isContainer && !codegenProperty.isMap;
|
||||
}
|
||||
|
||||
// The default validation applied for non-container and non-map types is sufficient for the SpringCodegen.
|
||||
// Maps are very complex for bean validation, so it's currently not supported.
|
||||
private static boolean isListOrSet(CodegenParameter codegenParameter) {
|
||||
return codegenParameter.isContainer && !codegenParameter.isMap;
|
||||
}
|
||||
|
||||
private String replaceBeanValidationCollectionType(CodegenProperty codegenProperty, String dataType) {
|
||||
if (!useBeanValidation() || !codegenProperty.isModel || isResponseType(codegenProperty)) {
|
||||
return dataType;
|
||||
}
|
||||
|
||||
if (StringUtils.isEmpty( dataType ) || dataType.contains( "@Valid" )) {
|
||||
return dataType;
|
||||
}
|
||||
return dataType.replace( "<", "<@Valid " );
|
||||
}
|
||||
|
||||
|
||||
// This should prevent, that the response data types not contains a @Valid annotation.
|
||||
// However, the side effect is that attributes with response as name are also affected.
|
||||
private static boolean isResponseType(CodegenProperty codegenProperty) {
|
||||
return codegenProperty.baseName.toLowerCase(Locale.ROOT).contains("response");
|
||||
}
|
||||
|
||||
// SPRING_HTTP_INTERFACE does not support bean validation.
|
||||
public boolean useBeanValidation() {
|
||||
return useBeanValidation && !SPRING_HTTP_INTERFACE.equals(library);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,12 +21,7 @@ import static java.util.stream.Collectors.groupingBy;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.openapitools.codegen.TestUtils.assertFileContains;
|
||||
import static org.openapitools.codegen.TestUtils.assertFileNotContains;
|
||||
import static org.openapitools.codegen.languages.SpringCodegen.INTERFACE_ONLY;
|
||||
import static org.openapitools.codegen.languages.SpringCodegen.REQUEST_MAPPING_OPTION;
|
||||
import static org.openapitools.codegen.languages.SpringCodegen.RESPONSE_WRAPPER;
|
||||
import static org.openapitools.codegen.languages.SpringCodegen.RETURN_SUCCESS_CODE;
|
||||
import static org.openapitools.codegen.languages.SpringCodegen.SPRING_BOOT;
|
||||
import static org.openapitools.codegen.languages.SpringCodegen.USE_SPRING_BOOT3;
|
||||
import static org.openapitools.codegen.languages.SpringCodegen.*;
|
||||
import static org.openapitools.codegen.languages.features.DocumentationProviderFeatures.ANNOTATION_LIBRARY;
|
||||
import static org.openapitools.codegen.languages.features.DocumentationProviderFeatures.DOCUMENTATION_PROVIDER;
|
||||
import static org.testng.Assert.assertEquals;
|
||||
@@ -50,6 +45,8 @@ import java.util.function.Consumer;
|
||||
import java.util.function.Function;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
import org.openapitools.codegen.config.GlobalSettings;
|
||||
import org.openapitools.codegen.java.assertions.JavaFileAssert;
|
||||
import org.openapitools.codegen.CliOption;
|
||||
@@ -655,6 +652,63 @@ public class SpringCodegenTest {
|
||||
));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldAddValidAnnotationIntoCollectionWhenBeanValidationIsEnabled_issue14723() throws IOException {
|
||||
File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||
output.deleteOnExit();
|
||||
|
||||
OpenAPI openAPI = new OpenAPIParser()
|
||||
.readLocation("src/test/resources/bugs/issue_14723.yaml", null, new ParseOptions()).getOpenAPI();
|
||||
SpringCodegen codegen = new SpringCodegen();
|
||||
codegen.setLibrary(SPRING_CLOUD_LIBRARY);
|
||||
codegen.setOutputDir(output.getAbsolutePath());
|
||||
codegen.additionalProperties().put(SpringCodegen.USE_BEANVALIDATION, "true");
|
||||
codegen.additionalProperties().put(SpringCodegen.PERFORM_BEANVALIDATION, "true");
|
||||
codegen.additionalProperties().put(CodegenConstants.MODEL_PACKAGE, "xyz.model");
|
||||
codegen.additionalProperties().put(CodegenConstants.API_PACKAGE, "xyz.controller");
|
||||
|
||||
ClientOptInput input = new ClientOptInput()
|
||||
.openAPI(openAPI)
|
||||
.config(codegen);
|
||||
|
||||
DefaultGenerator generator = new DefaultGenerator();
|
||||
Map<String, File> files = generator.opts(input).generate().stream()
|
||||
.collect(Collectors.toMap(File::getName, Function.identity()));
|
||||
|
||||
JavaFileAssert.assertThat(files.get("ResponseTest.java"))
|
||||
.isNormalClass()
|
||||
.hasImports("javax.validation.Valid")
|
||||
.hasProperty("details")
|
||||
.withType( "Map<String, Object>" )
|
||||
.toType()
|
||||
.hasProperty("response")
|
||||
.withType( "JsonNullable<Set<ResponseTest2>>" )
|
||||
.toType()
|
||||
.hasProperty("nullableDtos")
|
||||
.withType( "JsonNullable<Set<@Valid ResponseTest2>>" )
|
||||
.toType()
|
||||
.hasProperty("dtos")
|
||||
.withType( "Set<@Valid ResponseTest2>" )
|
||||
.toType()
|
||||
.hasProperty("listNullableDtos")
|
||||
.withType( "JsonNullable<List<@Valid ResponseTest2>>" )
|
||||
.toType()
|
||||
.hasProperty("listDtos")
|
||||
.withType( "List<@Valid ResponseTest2>" )
|
||||
.toType()
|
||||
.hasProperty("nullableStrings")
|
||||
.withType( "JsonNullable<Set<String>>" )
|
||||
.toType()
|
||||
.hasProperty("strings")
|
||||
.withType( "Set<String>" )
|
||||
.toType()
|
||||
.hasProperty("nullableInts")
|
||||
.withType( "JsonNullable<Set<Integer>>" )
|
||||
.toType()
|
||||
.hasProperty("ints")
|
||||
.withType( "Set<Integer>" );
|
||||
}
|
||||
|
||||
// Helper function, intended to reduce boilerplate
|
||||
private Map<String, File> generateFiles(SpringCodegen codegen, String filePath) throws IOException {
|
||||
final File output = Files.createTempDirectory("test").toFile().getCanonicalFile();
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
openapi: 3.0.1
|
||||
info:
|
||||
title: test
|
||||
version: 1.0.0
|
||||
paths:
|
||||
/test:
|
||||
get:
|
||||
summary: test
|
||||
operationId: test
|
||||
responses:
|
||||
200:
|
||||
$ref: '#/components/responses/ResponseTest'
|
||||
components:
|
||||
responses:
|
||||
ResponseTest:
|
||||
description: ""
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ResponseTest'
|
||||
schemas:
|
||||
ResponseTest:
|
||||
type: object
|
||||
properties:
|
||||
details:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: object
|
||||
description: An object with key/value pairs containing additional information about the error.
|
||||
response:
|
||||
type: array
|
||||
description: dtos
|
||||
uniqueItems: true
|
||||
items:
|
||||
$ref: '#/components/schemas/ResponseTest2'
|
||||
maxItems: 10
|
||||
nullable: true
|
||||
nullableDtos:
|
||||
type: array
|
||||
description: dtos
|
||||
uniqueItems: true
|
||||
items:
|
||||
$ref: '#/components/schemas/ResponseTest2'
|
||||
maxItems: 10
|
||||
nullable: true
|
||||
dtos:
|
||||
type: array
|
||||
description: dtos
|
||||
uniqueItems: true
|
||||
items:
|
||||
$ref: '#/components/schemas/ResponseTest2'
|
||||
maxItems: 10
|
||||
listNullableDtos:
|
||||
type: array
|
||||
description: dtos
|
||||
items:
|
||||
$ref: '#/components/schemas/ResponseTest2'
|
||||
maxItems: 10
|
||||
nullable: true
|
||||
listDtos:
|
||||
type: array
|
||||
description: dtos
|
||||
items:
|
||||
$ref: '#/components/schemas/ResponseTest2'
|
||||
maxItems: 10
|
||||
nullableStrings:
|
||||
type: array
|
||||
description: dtos
|
||||
uniqueItems: true
|
||||
items:
|
||||
type: string
|
||||
maxItems: 10
|
||||
nullable: true
|
||||
strings:
|
||||
type: array
|
||||
description: dtos
|
||||
uniqueItems: true
|
||||
items:
|
||||
type: string
|
||||
maxItems: 10
|
||||
nullableInts:
|
||||
type: array
|
||||
description: dtos
|
||||
uniqueItems: true
|
||||
items:
|
||||
type: int
|
||||
maxItems: 10
|
||||
nullable: true
|
||||
ints:
|
||||
type: array
|
||||
description: dtos
|
||||
uniqueItems: true
|
||||
items:
|
||||
type: int
|
||||
maxItems: 10
|
||||
ResponseTest2:
|
||||
type: object
|
||||
properties:
|
||||
label:
|
||||
type: string
|
||||
nullable: false
|
||||
@@ -43,7 +43,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -166,7 +166,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -185,11 +185,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -166,7 +166,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -185,11 +185,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -166,7 +166,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -185,11 +185,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -166,7 +166,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -185,11 +185,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -50,7 +50,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -69,11 +69,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -168,7 +168,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -187,11 +187,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -49,7 +49,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -68,11 +68,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -170,7 +170,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -189,11 +189,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -50,7 +50,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -69,11 +69,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -168,7 +168,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -187,11 +187,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -50,7 +50,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -69,11 +69,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -168,7 +168,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -187,11 +187,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -50,7 +50,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -69,11 +69,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -168,7 +168,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -187,11 +187,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -159,7 +159,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -177,11 +177,11 @@ public class Pet {
|
||||
* @return tags
|
||||
*/
|
||||
@Valid
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -50,7 +50,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -69,11 +69,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -168,7 +168,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -187,11 +187,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ public class Pet {
|
||||
@JsonProperty("tags")
|
||||
@JacksonXmlProperty(localName = "tag")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -179,7 +179,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -198,11 +198,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -50,7 +50,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -69,11 +69,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -168,7 +168,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -187,11 +187,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -166,7 +166,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -185,11 +185,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -50,7 +50,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -69,11 +69,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -171,7 +171,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -190,11 +190,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -169,7 +169,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -188,11 +188,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -169,7 +169,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -188,11 +188,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -169,7 +169,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -188,11 +188,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -159,7 +159,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -177,11 +177,11 @@ public class Pet {
|
||||
* @return tags
|
||||
*/
|
||||
@Valid
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -169,7 +169,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -188,11 +188,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -169,7 +169,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -188,11 +188,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -165,7 +165,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -184,11 +184,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -51,7 +51,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -70,11 +70,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -169,7 +169,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -188,11 +188,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ public class ArrayTest {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
public ArrayTest addArrayArrayOfModelItem(List<@Valid ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class FileSchemaTestClass {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<File> files = null;
|
||||
private List<@Valid File> files = null;
|
||||
|
||||
public FileSchemaTestClass file(File file) {
|
||||
this.file = file;
|
||||
@@ -50,7 +50,7 @@ public class FileSchemaTestClass {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClass files(List<File> files) {
|
||||
public FileSchemaTestClass files(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -69,11 +69,11 @@ public class FileSchemaTestClass {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<File> getFiles() {
|
||||
public List<@Valid File> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<File> files) {
|
||||
public void setFiles(List<@Valid File> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<Tag> tags = null;
|
||||
private List<@Valid Tag> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -168,7 +168,7 @@ public class Pet {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -187,11 +187,11 @@ public class Pet {
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
public List<Tag> getTags() {
|
||||
public List<@Valid Tag> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(List<@Valid Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ public class ArrayTestDto {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ArrayTestDto addArrayArrayOfModelItem(List<ReadOnlyFirstDto> arrayArrayOfModelItem) {
|
||||
public ArrayTestDto addArrayArrayOfModelItem(List<@Valid ReadOnlyFirstDto> arrayArrayOfModelItem) {
|
||||
if (this.arrayArrayOfModel == null) {
|
||||
this.arrayArrayOfModel = new ArrayList<>();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ public class FileSchemaTestClassDto {
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
private List<FileDto> files = null;
|
||||
private List<@Valid FileDto> files = null;
|
||||
|
||||
public FileSchemaTestClassDto file(FileDto file) {
|
||||
this.file = file;
|
||||
@@ -53,7 +53,7 @@ public class FileSchemaTestClassDto {
|
||||
this.file = file;
|
||||
}
|
||||
|
||||
public FileSchemaTestClassDto files(List<FileDto> files) {
|
||||
public FileSchemaTestClassDto files(List<@Valid FileDto> files) {
|
||||
this.files = files;
|
||||
return this;
|
||||
}
|
||||
@@ -72,11 +72,11 @@ public class FileSchemaTestClassDto {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<FileDto> getFiles() {
|
||||
public List<@Valid FileDto> getFiles() {
|
||||
return files;
|
||||
}
|
||||
|
||||
public void setFiles(List<FileDto> files) {
|
||||
public void setFiles(List<@Valid FileDto> files) {
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public class PetDto {
|
||||
|
||||
@JsonProperty("tags")
|
||||
@Valid
|
||||
private List<TagDto> tags = null;
|
||||
private List<@Valid TagDto> tags = null;
|
||||
|
||||
/**
|
||||
* pet status in the store
|
||||
@@ -171,7 +171,7 @@ public class PetDto {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public PetDto tags(List<TagDto> tags) {
|
||||
public PetDto tags(List<@Valid TagDto> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@@ -190,11 +190,11 @@ public class PetDto {
|
||||
*/
|
||||
@Valid
|
||||
@ApiModelProperty(value = "")
|
||||
public List<TagDto> getTags() {
|
||||
public List<@Valid TagDto> getTags() {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<TagDto> tags) {
|
||||
public void setTags(List<@Valid TagDto> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user