Schema
The schema defines the format of the request and response data. It uses the TypeSchema specification. The following example shows a simple object.
Configuration
Name
The name of the schema.
Schema
A TypeSchema which describes the JSON structure.
Example
{
"definitions": {
"Student": {
"type": "object",
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"age": {
"type": "integer"
}
}
}
},
"$ref": "Student"
}