-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric Durand-Tremblay
committed
Jun 15, 2022
1 parent
687dbf9
commit f4043c9
Showing
89 changed files
with
4,230 additions
and
416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
samples/client/petstore/java/nullable-object-property/.github/workflows/maven.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
# | ||
# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) | ||
|
||
name: Java CI with Maven | ||
|
||
on: | ||
push: | ||
branches: [ main, master ] | ||
pull_request: | ||
branches: [ main, master ] | ||
|
||
jobs: | ||
build: | ||
name: Build Title | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [ '8' ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Build with Maven | ||
run: mvn -B package --no-transfer-progress --file pom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
samples/client/petstore/java/nullable-object-property/.openapi-generator/VERSION
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5.3.1-SNAPSHOT | ||
6.0.1-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...able-object-property/docs/ModelWithNullableObjectPropertyNonNullableProperty.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
|
||
# ModelWithNullableObjectPropertyNonNullableProperty | ||
|
||
## oneOf schemas | ||
* [BigDecimal](BigDecimal.md) | ||
* [String](String.md) | ||
|
||
## Example | ||
```java | ||
// Import classes: | ||
import org.openapitools.client.model.ModelWithNullableObjectPropertyNonNullableProperty; | ||
import org.openapitools.client.model.BigDecimal; | ||
import org.openapitools.client.model.String; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ModelWithNullableObjectPropertyNonNullableProperty exampleModelWithNullableObjectPropertyNonNullableProperty = new ModelWithNullableObjectPropertyNonNullableProperty(); | ||
|
||
// create a new BigDecimal | ||
BigDecimal exampleBigDecimal = new BigDecimal(); | ||
// set ModelWithNullableObjectPropertyNonNullableProperty to BigDecimal | ||
exampleModelWithNullableObjectPropertyNonNullableProperty.setActualInstance(exampleBigDecimal); | ||
// to get back the BigDecimal set earlier | ||
BigDecimal testBigDecimal = (BigDecimal) exampleModelWithNullableObjectPropertyNonNullableProperty.getActualInstance(); | ||
|
||
// create a new String | ||
String exampleString = new String(); | ||
// set ModelWithNullableObjectPropertyNonNullableProperty to String | ||
exampleModelWithNullableObjectPropertyNonNullableProperty.setActualInstance(exampleString); | ||
// to get back the String set earlier | ||
String testString = (String) exampleModelWithNullableObjectPropertyNonNullableProperty.getActualInstance(); | ||
} | ||
} | ||
``` | ||
|
||
|
30 changes: 30 additions & 0 deletions
30
.../nullable-object-property/docs/ModelWithNullableObjectPropertyPropertyName30.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
|
||
# ModelWithNullableObjectPropertyPropertyName30 | ||
|
||
## oneOf schemas | ||
* [PropertyType](PropertyType.md) | ||
|
||
NOTE: this class is nullable. | ||
|
||
## Example | ||
```java | ||
// Import classes: | ||
import org.openapitools.client.model.ModelWithNullableObjectPropertyPropertyName30; | ||
import org.openapitools.client.model.PropertyType; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ModelWithNullableObjectPropertyPropertyName30 exampleModelWithNullableObjectPropertyPropertyName30 = new ModelWithNullableObjectPropertyPropertyName30(); | ||
|
||
// create a new PropertyType | ||
PropertyType examplePropertyType = new PropertyType(); | ||
// set ModelWithNullableObjectPropertyPropertyName30 to PropertyType | ||
exampleModelWithNullableObjectPropertyPropertyName30.setActualInstance(examplePropertyType); | ||
// to get back the PropertyType set earlier | ||
PropertyType testPropertyType = (PropertyType) exampleModelWithNullableObjectPropertyPropertyName30.getActualInstance(); | ||
} | ||
} | ||
``` | ||
|
||
|
30 changes: 30 additions & 0 deletions
30
.../nullable-object-property/docs/ModelWithNullableObjectPropertyPropertyName31.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
|
||
|
||
# ModelWithNullableObjectPropertyPropertyName31 | ||
|
||
## oneOf schemas | ||
* [PropertyType](PropertyType.md) | ||
|
||
NOTE: this class is nullable. | ||
|
||
## Example | ||
```java | ||
// Import classes: | ||
import org.openapitools.client.model.ModelWithNullableObjectPropertyPropertyName31; | ||
import org.openapitools.client.model.PropertyType; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ModelWithNullableObjectPropertyPropertyName31 exampleModelWithNullableObjectPropertyPropertyName31 = new ModelWithNullableObjectPropertyPropertyName31(); | ||
|
||
// create a new PropertyType | ||
PropertyType examplePropertyType = new PropertyType(); | ||
// set ModelWithNullableObjectPropertyPropertyName31 to PropertyType | ||
exampleModelWithNullableObjectPropertyPropertyName31.setActualInstance(examplePropertyType); | ||
// to get back the PropertyType set earlier | ||
PropertyType testPropertyType = (PropertyType) exampleModelWithNullableObjectPropertyPropertyName31.getActualInstance(); | ||
} | ||
} | ||
``` | ||
|
||
|
39 changes: 39 additions & 0 deletions
39
...ect-property/docs/ModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
|
||
# ModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes | ||
|
||
## oneOf schemas | ||
* [OtherPropertyType](OtherPropertyType.md) | ||
* [PropertyType](PropertyType.md) | ||
|
||
NOTE: this class is nullable. | ||
|
||
## Example | ||
```java | ||
// Import classes: | ||
import org.openapitools.client.model.ModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes; | ||
import org.openapitools.client.model.OtherPropertyType; | ||
import org.openapitools.client.model.PropertyType; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
ModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes exampleModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes = new ModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes(); | ||
|
||
// create a new OtherPropertyType | ||
OtherPropertyType exampleOtherPropertyType = new OtherPropertyType(); | ||
// set ModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes to OtherPropertyType | ||
exampleModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes.setActualInstance(exampleOtherPropertyType); | ||
// to get back the OtherPropertyType set earlier | ||
OtherPropertyType testOtherPropertyType = (OtherPropertyType) exampleModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes.getActualInstance(); | ||
|
||
// create a new PropertyType | ||
PropertyType examplePropertyType = new PropertyType(); | ||
// set ModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes to PropertyType | ||
exampleModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes.setActualInstance(examplePropertyType); | ||
// to get back the PropertyType set earlier | ||
PropertyType testPropertyType = (PropertyType) exampleModelWithNullableObjectPropertyPropertyWithNullAndTwoTypes.getActualInstance(); | ||
} | ||
} | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.