venkr
/
cog-union-test
- Public
- 23 runs
Run venkr/cog-union-test with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
Field | Type | Default value | Description |
---|---|---|---|
string_union |
None
|
Either a string or a list of strings
|
|
string_list |
array
|
A list of strings or nothing
|
{
"type": "object",
"title": "Input",
"required": [
"string_union"
],
"properties": {
"string_list": {
"type": "array",
"items": {
"type": "string"
},
"title": "String List",
"x-order": 1,
"description": "A list of strings or nothing"
},
"string_union": {
"anyOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
}
}
],
"title": "String Union",
"x-order": 0,
"description": "Either a string or a list of strings"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output"
}