// example file json
{
"type": "object",
"properties": {
"id": {
"$ref": "https://localschema/common#/definitions/id"
},
"date": {
"type": "string",
"format": "date-time"
},
"student_id": {
"$ref": "https://localschema/common#/definitions/id"
},
"deedable_id": {
"$ref": "https://localschema/common#/definitions/id"
},
"deedable_type": {
"type": ["string"],
"enum": ["DEED_RULE", "HABITUATION"]
},
"config": {
"type": ["null", "object", "array"]
},
"notes": {
"type": ["null", "string"]
},
"user_id": {
"$ref": "https://localschema/common#/definitions/id"
},
"status": {
"type": ["null", "string"]
},
"do": {
"type": ["null", "boolean"]
}
},
"required": [
"id",
"date",
"student_id",
"deedable_id",
"deedable_type",
"config",
"notes",
"user_id",
"status",
"do"
]
}
// end json
// property id
"id": {
"$ref": "https://localschema/common#/definitions/id"
},
// property string
"notes": {
"type": "string"
},
// property date
"date": {
"type": "string",
"format": "date-time"
},
// property number
"order": {
"type": "number"
},
// property integer
"order": {
"type": "integer"
},
// property enum
"type":{
"enum": ["REWARD", "PUNISHMENT"]
},
// property json
"config": {
"type": ["object", "array"]
},
// property null
"status": {
"type": ["null", "string"]
},
Comments