API reference
post_jev_evaluate_Request
The objects, fields and constraints behind the API.
| Field | Type & constraints |
|---|---|
staterequired | string | object | post_jev_evaluate_Request ↗ [] |
questionsrequired | object |
View JSON schema
{
"type": "object",
"properties": {
"state": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/components/schemas/post_jev_evaluate_Request/$defs/__schema0"
}
},
{
"minItems": 1,
"type": "array",
"items": {
"$ref": "#/components/schemas/post_jev_evaluate_Request/$defs/__schema1"
}
}
]
},
"questions": {
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
},
"additionalProperties": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "boolean"
},
"instructions": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"criteria": {
"type": "object",
"properties": {
"true": {
"type": "string",
"minLength": 1,
"maxLength": 512
},
"false": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
},
"required": [
"true",
"false"
],
"additionalProperties": false
}
},
"required": [
"type",
"instructions"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "choice"
},
"instructions": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"criteria": {
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
},
"additionalProperties": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
}
},
"required": [
"type",
"instructions",
"criteria"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "score"
},
"instructions": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"criteria": {
"minItems": 2,
"maxItems": 10,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
}
},
"required": [
"type",
"instructions",
"criteria"
],
"additionalProperties": false
}
]
}
}
},
"required": [
"state",
"questions"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/components/schemas/post_jev_evaluate_Request/$defs/__schema0"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/components/schemas/post_jev_evaluate_Request/$defs/__schema0"
}
}
]
},
"__schema1": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/components/schemas/post_jev_evaluate_Request/$defs/__schema1"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/components/schemas/post_jev_evaluate_Request/$defs/__schema1"
}
}
]
}
}
}