49 lines
1.0 KiB
JSON
49 lines
1.0 KiB
JSON
{
|
|
"$id": "urn:kf-oj:problem-publish:v1",
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"candidate_id": {
|
|
"format": "uuid",
|
|
"title": "Candidate Id",
|
|
"type": "string"
|
|
},
|
|
"expected_active_version_id": {
|
|
"anyOf": [
|
|
{
|
|
"format": "uuid",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
],
|
|
"title": "Expected Active Version Id"
|
|
},
|
|
"import_operation_id": {
|
|
"format": "uuid",
|
|
"title": "Import Operation Id",
|
|
"type": "string"
|
|
},
|
|
"operation_id": {
|
|
"format": "uuid",
|
|
"title": "Operation Id",
|
|
"type": "string"
|
|
},
|
|
"schema_version": {
|
|
"const": 1,
|
|
"default": 1,
|
|
"title": "Schema Version",
|
|
"type": "integer"
|
|
}
|
|
},
|
|
"required": [
|
|
"operation_id",
|
|
"import_operation_id",
|
|
"candidate_id",
|
|
"expected_active_version_id"
|
|
],
|
|
"title": "PublishCandidate",
|
|
"type": "object"
|
|
}
|