Skip to content

Commit 664dd24

Browse files
committed
Regenerate samples
1 parent eca99b3 commit 664dd24

7 files changed

Lines changed: 337 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
3+
# Interface Animal
4+
5+
## Implementing Classes
6+
7+
* Cat
8+
* Dog
9+
10+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
3+
# Cat
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**declawed** | **Boolean** | | [optional] |
11+
12+
13+
## Implemented Interfaces
14+
15+
* Animal
16+
17+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
3+
# Dog
4+
5+
6+
## Properties
7+
8+
| Name | Type | Description | Notes |
9+
|------------ | ------------- | ------------- | -------------|
10+
|**bark** | **Boolean** | | [optional] |
11+
12+
13+
## Implemented Interfaces
14+
15+
* Animal
16+
17+
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/*
2+
* ByRefOrValue
3+
* This tests for a oneOf interface representation
4+
*
5+
* The version of the OpenAPI document: 0.0.1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package org.openapitools.client.model;
15+
16+
import java.util.Objects;
17+
import java.util.Arrays;
18+
import java.util.Locale;
19+
import com.fasterxml.jackson.annotation.JsonInclude;
20+
import com.fasterxml.jackson.annotation.JsonProperty;
21+
import com.fasterxml.jackson.annotation.JsonCreator;
22+
import com.fasterxml.jackson.annotation.JsonTypeName;
23+
import com.fasterxml.jackson.annotation.JsonValue;
24+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
25+
import com.fasterxml.jackson.annotation.JsonTypeName;
26+
27+
/**
28+
* Cat
29+
*/
30+
@JsonPropertyOrder({
31+
Cat.JSON_PROPERTY_DECLAWED
32+
})
33+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0-SNAPSHOT")
34+
public final class Cat implements Animal {
35+
public static final String JSON_PROPERTY_DECLAWED = "declawed";
36+
@javax.annotation.Nullable
37+
private Boolean declawed;
38+
39+
public Cat() {
40+
}
41+
42+
public Cat declawed(@javax.annotation.Nullable Boolean declawed) {
43+
44+
this.declawed = declawed;
45+
return this;
46+
}
47+
48+
/**
49+
* Get declawed
50+
* @return declawed
51+
*/
52+
@javax.annotation.Nullable
53+
@JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false)
54+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
55+
56+
public Boolean getDeclawed() {
57+
return declawed;
58+
}
59+
60+
61+
@JsonProperty(value = JSON_PROPERTY_DECLAWED, required = false)
62+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63+
public void setDeclawed(@javax.annotation.Nullable Boolean declawed) {
64+
this.declawed = declawed;
65+
}
66+
67+
68+
@Override
69+
public boolean equals(Object o) {
70+
if (this == o) {
71+
return true;
72+
}
73+
if (o == null || getClass() != o.getClass()) {
74+
return false;
75+
}
76+
Cat cat = (Cat) o;
77+
return Objects.equals(this.declawed, cat.declawed);
78+
}
79+
80+
@Override
81+
public int hashCode() {
82+
return Objects.hash(declawed);
83+
}
84+
85+
@Override
86+
public String toString() {
87+
StringBuilder sb = new StringBuilder();
88+
sb.append("class Cat {\n");
89+
sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n");
90+
sb.append("}");
91+
return sb.toString();
92+
}
93+
94+
/**
95+
* Convert the given object to string with each line indented by 4 spaces
96+
* (except the first line).
97+
*/
98+
private String toIndentedString(Object o) {
99+
if (o == null) {
100+
return "null";
101+
}
102+
return o.toString().replace("\n", "\n ");
103+
}
104+
105+
}
106+
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
/*
2+
* ByRefOrValue
3+
* This tests for a oneOf interface representation
4+
*
5+
* The version of the OpenAPI document: 0.0.1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package org.openapitools.client.model;
15+
16+
import java.util.Objects;
17+
import java.util.Arrays;
18+
import java.util.Locale;
19+
import com.fasterxml.jackson.annotation.JsonInclude;
20+
import com.fasterxml.jackson.annotation.JsonProperty;
21+
import com.fasterxml.jackson.annotation.JsonCreator;
22+
import com.fasterxml.jackson.annotation.JsonTypeName;
23+
import com.fasterxml.jackson.annotation.JsonValue;
24+
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
25+
import com.fasterxml.jackson.annotation.JsonTypeName;
26+
27+
/**
28+
* Dog
29+
*/
30+
@JsonPropertyOrder({
31+
Dog.JSON_PROPERTY_BARK
32+
})
33+
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.16.0-SNAPSHOT")
34+
public final class Dog implements Animal {
35+
public static final String JSON_PROPERTY_BARK = "bark";
36+
@javax.annotation.Nullable
37+
private Boolean bark;
38+
39+
public Dog() {
40+
}
41+
42+
public Dog bark(@javax.annotation.Nullable Boolean bark) {
43+
44+
this.bark = bark;
45+
return this;
46+
}
47+
48+
/**
49+
* Get bark
50+
* @return bark
51+
*/
52+
@javax.annotation.Nullable
53+
@JsonProperty(value = JSON_PROPERTY_BARK, required = false)
54+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
55+
56+
public Boolean getBark() {
57+
return bark;
58+
}
59+
60+
61+
@JsonProperty(value = JSON_PROPERTY_BARK, required = false)
62+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63+
public void setBark(@javax.annotation.Nullable Boolean bark) {
64+
this.bark = bark;
65+
}
66+
67+
68+
@Override
69+
public boolean equals(Object o) {
70+
if (this == o) {
71+
return true;
72+
}
73+
if (o == null || getClass() != o.getClass()) {
74+
return false;
75+
}
76+
Dog dog = (Dog) o;
77+
return Objects.equals(this.bark, dog.bark);
78+
}
79+
80+
@Override
81+
public int hashCode() {
82+
return Objects.hash(bark);
83+
}
84+
85+
@Override
86+
public String toString() {
87+
StringBuilder sb = new StringBuilder();
88+
sb.append("class Dog {\n");
89+
sb.append(" bark: ").append(toIndentedString(bark)).append("\n");
90+
sb.append("}");
91+
return sb.toString();
92+
}
93+
94+
/**
95+
* Convert the given object to string with each line indented by 4 spaces
96+
* (except the first line).
97+
*/
98+
private String toIndentedString(Object o) {
99+
if (o == null) {
100+
return "null";
101+
}
102+
return o.toString().replace("\n", "\n ");
103+
}
104+
105+
}
106+
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* ByRefOrValue
3+
* This tests for a oneOf interface representation
4+
*
5+
* The version of the OpenAPI document: 0.0.1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package org.openapitools.client.model;
15+
16+
import com.fasterxml.jackson.annotation.JsonInclude;
17+
import com.fasterxml.jackson.annotation.JsonProperty;
18+
import com.fasterxml.jackson.annotation.JsonCreator;
19+
import com.fasterxml.jackson.annotation.JsonTypeName;
20+
import com.fasterxml.jackson.annotation.JsonValue;
21+
import org.openapitools.client.model.Cat;
22+
import org.openapitools.client.model.Dog;
23+
import com.fasterxml.jackson.annotation.JsonSubTypes;
24+
import com.fasterxml.jackson.annotation.JsonTypeInfo;
25+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26+
import org.junit.jupiter.api.Assertions;
27+
import org.junit.jupiter.api.Disabled;
28+
import org.junit.jupiter.api.Test;
29+
30+
/**
31+
* Model tests for Animal
32+
*/
33+
class AnimalTest {
34+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* ByRefOrValue
3+
* This tests for a oneOf interface representation
4+
*
5+
* The version of the OpenAPI document: 0.0.1
6+
*
7+
*
8+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9+
* https://openapi-generator.tech
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package org.openapitools.client.model;
15+
16+
import com.fasterxml.jackson.annotation.JsonInclude;
17+
import com.fasterxml.jackson.annotation.JsonProperty;
18+
import com.fasterxml.jackson.annotation.JsonCreator;
19+
import com.fasterxml.jackson.annotation.JsonTypeName;
20+
import com.fasterxml.jackson.annotation.JsonValue;
21+
import org.junit.jupiter.api.Assertions;
22+
import org.junit.jupiter.api.Disabled;
23+
import org.junit.jupiter.api.Test;
24+
25+
/**
26+
* Model tests for Cat
27+
*/
28+
class CatTest {
29+
private final Cat model = new Cat();
30+
31+
/**
32+
* Model tests for Cat
33+
*/
34+
@Test
35+
void testCat() {
36+
// TODO: test Cat
37+
}
38+
39+
/**
40+
* Test the property 'declawed'
41+
*/
42+
@Test
43+
void declawedTest() {
44+
// TODO: test declawed
45+
}
46+
47+
}

0 commit comments

Comments
 (0)