mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 13:36:11 +00:00
Fix usage of javax.annotation (#6645)
* Fix usage of javax.annotation:javax.annotation-api * Regenerate samples ``` bin/generate-samples.sh bin/configs/java-* bin/configs/jaxrs-* bin/configs/spring-* bin/configs/kotlin-* bin/configs/other/java-* bin/configs/other/jaxrs-* bin/configs/other/kotlin-* bin/configs/other/openapi3/jaxrs-cxf-client.yaml bin/configs/other/openapi3/kotlin-* ```
This commit is contained in:
@@ -16,7 +16,7 @@ package org.openapitools.client;
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ApiException extends Exception {
|
||||
private int code = 0;
|
||||
private Map<String, List<String>> responseHeaders = null;
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
package org.openapitools.client;
|
||||
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Configuration {
|
||||
private static ApiClient defaultApiClient = new ApiClient();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
package org.openapitools.client;
|
||||
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Pair {
|
||||
private String name = "";
|
||||
private String value = "";
|
||||
|
||||
@@ -16,7 +16,7 @@ package org.openapitools.client;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class StringUtil {
|
||||
/**
|
||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.openapitools.client.Pair;
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ApiKeyAuth implements Authentication {
|
||||
private final String location;
|
||||
private final String paramName;
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.openapitools.client.Pair;
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class HttpBearerAuth implements Authentication {
|
||||
private final String scheme;
|
||||
private String bearerToken;
|
||||
|
||||
@@ -18,7 +18,7 @@ import org.openapitools.client.Pair;
|
||||
import java.util.Map;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class OAuth implements Authentication {
|
||||
private String accessToken;
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.Map;
|
||||
/**
|
||||
* AdditionalPropertiesAnyType
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Map;
|
||||
/**
|
||||
* AdditionalPropertiesArray
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.Map;
|
||||
/**
|
||||
* AdditionalPropertiesBoolean
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
|
||||
@@ -31,7 +31,7 @@ import java.util.Map;
|
||||
/**
|
||||
* AdditionalPropertiesClass
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesClass {
|
||||
public static final String SERIALIZED_NAME_MAP_STRING = "map_string";
|
||||
@SerializedName(SERIALIZED_NAME_MAP_STRING)
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.Map;
|
||||
/**
|
||||
* AdditionalPropertiesInteger
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Map;
|
||||
/**
|
||||
* AdditionalPropertiesNumber
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.Map;
|
||||
/**
|
||||
* AdditionalPropertiesObject
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.Map;
|
||||
/**
|
||||
* AdditionalPropertiesString
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.openapitools.client.model.Dog;
|
||||
/**
|
||||
* Animal
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
|
||||
public class Animal {
|
||||
public static final String SERIALIZED_NAME_CLASS_NAME = "className";
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
/**
|
||||
* ArrayOfArrayOfNumberOnly
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER)
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
/**
|
||||
* ArrayOfNumberOnly
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ArrayOfNumberOnly {
|
||||
public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_NUMBER)
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.openapitools.client.model.ReadOnlyFirst;
|
||||
/**
|
||||
* ArrayTest
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ArrayTest {
|
||||
public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string";
|
||||
@SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING)
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.openapitools.client.model.Cat;
|
||||
/**
|
||||
* BigCat
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
|
||||
public class BigCat extends Cat {
|
||||
/**
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* BigCatAllOf
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class BigCatAllOf {
|
||||
/**
|
||||
* Gets or Sets kind
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* Capitalization
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Capitalization {
|
||||
public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel";
|
||||
@SerializedName(SERIALIZED_NAME_SMALL_CAMEL)
|
||||
|
||||
@@ -30,7 +30,7 @@ import org.openapitools.client.model.CatAllOf;
|
||||
/**
|
||||
* Cat
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
|
||||
public class Cat extends Animal {
|
||||
public static final String SERIALIZED_NAME_DECLAWED = "declawed";
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* CatAllOf
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class CatAllOf {
|
||||
public static final String SERIALIZED_NAME_DECLAWED = "declawed";
|
||||
@SerializedName(SERIALIZED_NAME_DECLAWED)
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* Category
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Category {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.io.IOException;
|
||||
* Model for testing model with \"_class\" property
|
||||
*/
|
||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ClassModel {
|
||||
public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class";
|
||||
@SerializedName(SERIALIZED_NAME_PROPERTY_CLASS)
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* Client
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Client {
|
||||
public static final String SERIALIZED_NAME_CLIENT = "client";
|
||||
@SerializedName(SERIALIZED_NAME_CLIENT)
|
||||
|
||||
@@ -29,7 +29,7 @@ import org.openapitools.client.model.DogAllOf;
|
||||
/**
|
||||
* Dog
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
|
||||
public class Dog extends Animal {
|
||||
public static final String SERIALIZED_NAME_BREED = "breed";
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* DogAllOf
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class DogAllOf {
|
||||
public static final String SERIALIZED_NAME_BREED = "breed";
|
||||
@SerializedName(SERIALIZED_NAME_BREED)
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
/**
|
||||
* EnumArrays
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class EnumArrays {
|
||||
/**
|
||||
* Gets or Sets justSymbol
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.openapitools.client.model.OuterEnum;
|
||||
/**
|
||||
* EnumTest
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class EnumTest {
|
||||
/**
|
||||
* Gets or Sets enumString
|
||||
|
||||
@@ -29,7 +29,7 @@ import java.util.List;
|
||||
/**
|
||||
* FileSchemaTestClass
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class FileSchemaTestClass {
|
||||
public static final String SERIALIZED_NAME_FILE = "file";
|
||||
@SerializedName(SERIALIZED_NAME_FILE)
|
||||
|
||||
@@ -32,7 +32,7 @@ import org.threeten.bp.OffsetDateTime;
|
||||
/**
|
||||
* FormatTest
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class FormatTest {
|
||||
public static final String SERIALIZED_NAME_INTEGER = "integer";
|
||||
@SerializedName(SERIALIZED_NAME_INTEGER)
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* HasOnlyReadOnly
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class HasOnlyReadOnly {
|
||||
public static final String SERIALIZED_NAME_BAR = "bar";
|
||||
@SerializedName(SERIALIZED_NAME_BAR)
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.Map;
|
||||
/**
|
||||
* MapTest
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class MapTest {
|
||||
public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string";
|
||||
@SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING)
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.threeten.bp.OffsetDateTime;
|
||||
/**
|
||||
* MixedPropertiesAndAdditionalPropertiesClass
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
public static final String SERIALIZED_NAME_UUID = "uuid";
|
||||
@SerializedName(SERIALIZED_NAME_UUID)
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.io.IOException;
|
||||
* Model for testing model name starting with number
|
||||
*/
|
||||
@ApiModel(description = "Model for testing model name starting with number")
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Model200Response {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* ModelApiResponse
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ModelApiResponse {
|
||||
public static final String SERIALIZED_NAME_CODE = "code";
|
||||
@SerializedName(SERIALIZED_NAME_CODE)
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.io.IOException;
|
||||
* Model for testing reserved words
|
||||
*/
|
||||
@ApiModel(description = "Model for testing reserved words")
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ModelReturn {
|
||||
public static final String SERIALIZED_NAME_RETURN = "return";
|
||||
@SerializedName(SERIALIZED_NAME_RETURN)
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.io.IOException;
|
||||
* Model for testing model name same as property name
|
||||
*/
|
||||
@ApiModel(description = "Model for testing model name same as property name")
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Name {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.math.BigDecimal;
|
||||
/**
|
||||
* NumberOnly
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class NumberOnly {
|
||||
public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber";
|
||||
@SerializedName(SERIALIZED_NAME_JUST_NUMBER)
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.threeten.bp.OffsetDateTime;
|
||||
/**
|
||||
* Order
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Order {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
|
||||
@@ -28,7 +28,7 @@ import java.math.BigDecimal;
|
||||
/**
|
||||
* OuterComposite
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class OuterComposite {
|
||||
public static final String SERIALIZED_NAME_MY_NUMBER = "my_number";
|
||||
@SerializedName(SERIALIZED_NAME_MY_NUMBER)
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.openapitools.client.model.Tag;
|
||||
/**
|
||||
* Pet
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Pet {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* ReadOnlyFirst
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class ReadOnlyFirst {
|
||||
public static final String SERIALIZED_NAME_BAR = "bar";
|
||||
@SerializedName(SERIALIZED_NAME_BAR)
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* SpecialModelName
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class SpecialModelName {
|
||||
public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||
@SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME)
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* Tag
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class Tag {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
/**
|
||||
* TypeHolderDefault
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class TypeHolderDefault {
|
||||
public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
|
||||
@SerializedName(SERIALIZED_NAME_STRING_ITEM)
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
/**
|
||||
* TypeHolderExample
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class TypeHolderExample {
|
||||
public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
|
||||
@SerializedName(SERIALIZED_NAME_STRING_ITEM)
|
||||
|
||||
@@ -27,7 +27,7 @@ import java.io.IOException;
|
||||
/**
|
||||
* User
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class User {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
|
||||
@@ -30,7 +30,7 @@ import java.util.List;
|
||||
/**
|
||||
* XmlItem
|
||||
*/
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class XmlItem {
|
||||
public static final String SERIALIZED_NAME_ATTRIBUTE_STRING = "attribute_string";
|
||||
@SerializedName(SERIALIZED_NAME_ATTRIBUTE_STRING)
|
||||
|
||||
Reference in New Issue
Block a user