Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2087,6 +2087,10 @@ components:
properties:
name:
type: string
pet_type:
enum:
- ChildCat
default: ChildCat
ArrayOfEnums:
type: array
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,11 @@ components:
properties:
name:
type: string
pet_type:
default: ChildCat
enum:
- ChildCat
type: string
type: object
securitySchemes:
petstore_auth:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]
**petType** | [**PetTypeEnum**](#PetTypeEnum) | | [optional]



## Enum: PetTypeEnum

Name | Value
---- | -----
CHILDCAT | "ChildCat"



Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | | [optional]
**petType** | [**PetTypeEnum**](#PetTypeEnum) | | [optional]



## Enum: PetTypeEnum

Name | Value
---- | -----
CHILDCAT | "ChildCat"



Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
* ChildCat
*/
@JsonPropertyOrder({
ChildCat.JSON_PROPERTY_NAME
ChildCat.JSON_PROPERTY_NAME,
ChildCat.JSON_PROPERTY_PET_TYPE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "pet_type", visible = true)
Expand All @@ -49,6 +50,42 @@ public class ChildCat extends ParentPet {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

/**
* Gets or Sets petType
*/
public enum PetTypeEnum {
CHILDCAT("ChildCat");

private String value;

PetTypeEnum(String value) {
this.value = value;
}

@JsonValue
public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

@JsonCreator
public static PetTypeEnum fromValue(String value) {
for (PetTypeEnum b : PetTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

public static final String JSON_PROPERTY_PET_TYPE = "pet_type";
private PetTypeEnum petType = PetTypeEnum.CHILDCAT;


public ChildCat name(String name) {
this.name = name;
Expand All @@ -73,6 +110,30 @@ public void setName(String name) {
this.name = name;
}


public ChildCat petType(PetTypeEnum petType) {
this.petType = petType;
return this;
}

/**
* Get petType
* @return petType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public PetTypeEnum getPetType() {
return petType;
}


public void setPetType(PetTypeEnum petType) {
this.petType = petType;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -123,14 +184,15 @@ public boolean equals(java.lang.Object o) {
return false;
}
ChildCat childCat = (ChildCat) o;
return Objects.equals(this.name, childCat.name)&&
return Objects.equals(this.name, childCat.name) &&
Objects.equals(this.petType, childCat.petType)&&
Objects.equals(this.additionalProperties, childCat.additionalProperties) &&
super.equals(o);
}

@Override
public int hashCode() {
return Objects.hash(name, super.hashCode(), additionalProperties);
return Objects.hash(name, petType, super.hashCode(), additionalProperties);
}


Expand All @@ -140,6 +202,7 @@ public String toString() {
sb.append("class ChildCat {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" petType: ").append(toIndentedString(petType)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,50 @@
* ChildCatAllOf
*/
@JsonPropertyOrder({
ChildCatAllOf.JSON_PROPERTY_NAME
ChildCatAllOf.JSON_PROPERTY_NAME,
ChildCatAllOf.JSON_PROPERTY_PET_TYPE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ChildCatAllOf {
public static final String JSON_PROPERTY_NAME = "name";
private String name;

/**
* Gets or Sets petType
*/
public enum PetTypeEnum {
CHILDCAT("ChildCat");

private String value;

PetTypeEnum(String value) {
this.value = value;
}

@JsonValue
public String getValue() {
return value;
}

@Override
public String toString() {
return String.valueOf(value);
}

@JsonCreator
public static PetTypeEnum fromValue(String value) {
for (PetTypeEnum b : PetTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}

public static final String JSON_PROPERTY_PET_TYPE = "pet_type";
private PetTypeEnum petType = PetTypeEnum.CHILDCAT;


public ChildCatAllOf name(String name) {
this.name = name;
Expand All @@ -64,6 +101,30 @@ public void setName(String name) {
}


public ChildCatAllOf petType(PetTypeEnum petType) {
this.petType = petType;
return this;
}

/**
* Get petType
* @return petType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PET_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public PetTypeEnum getPetType() {
return petType;
}


public void setPetType(PetTypeEnum petType) {
this.petType = petType;
}


/**
* Return true if this ChildCat_allOf object is equal to o.
*/
Expand All @@ -76,12 +137,13 @@ public boolean equals(java.lang.Object o) {
return false;
}
ChildCatAllOf childCatAllOf = (ChildCatAllOf) o;
return Objects.equals(this.name, childCatAllOf.name);
return Objects.equals(this.name, childCatAllOf.name) &&
Objects.equals(this.petType, childCatAllOf.petType);
}

@Override
public int hashCode() {
return Objects.hash(name);
return Objects.hash(name, petType);
}


Expand All @@ -90,6 +152,7 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ChildCatAllOf {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" petType: ").append(toIndentedString(petType)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down