-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tests for anyof with discriminator
- Loading branch information
Showing
22 changed files
with
1,399 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
|
||
# MammalAnyof | ||
|
||
## anyOf schemas | ||
* [Pig](Pig.md) | ||
* [Whale](Whale.md) | ||
* [Zebra](Zebra.md) | ||
|
||
## Example | ||
```java | ||
// Import classes: | ||
import org.openapitools.client.model.MammalAnyof; | ||
import org.openapitools.client.model.Pig; | ||
import org.openapitools.client.model.Whale; | ||
import org.openapitools.client.model.Zebra; | ||
|
||
public class Example { | ||
public static void main(String[] args) { | ||
MammalAnyof exampleMammalAnyof = new MammalAnyof(); | ||
|
||
// create a new Pig | ||
Pig examplePig = new Pig(); | ||
// set MammalAnyof to Pig | ||
exampleMammalAnyof.setActualInstance(examplePig); | ||
// to get back the Pig set earlier | ||
Pig testPig = (Pig) exampleMammalAnyof.getActualInstance(); | ||
|
||
// create a new Whale | ||
Whale exampleWhale = new Whale(); | ||
// set MammalAnyof to Whale | ||
exampleMammalAnyof.setActualInstance(exampleWhale); | ||
// to get back the Whale set earlier | ||
Whale testWhale = (Whale) exampleMammalAnyof.getActualInstance(); | ||
|
||
// create a new Zebra | ||
Zebra exampleZebra = new Zebra(); | ||
// set MammalAnyof to Zebra | ||
exampleMammalAnyof.setActualInstance(exampleZebra); | ||
// to get back the Zebra set earlier | ||
Zebra testZebra = (Zebra) exampleMammalAnyof.getActualInstance(); | ||
} | ||
} | ||
``` | ||
|
||
|
Oops, something went wrong.