git-lfs/locking/schemas/http-lock-create-response-schema.json
Marat Radchenko 3564be3881
Make 'locked_at' required in JSON schema
This commit fixes discrepancy between LFS locking spec and JSON schema.

Per discussion in #3652, spec has higher priority here.
2019-05-16 12:10:16 +03:00

41 lines
788 B
JSON

{
"$schema": "http://json-schema.org/draft-04/schema",
"title": "Git LFS HTTPS Lock Creation API Response",
"type": "object",
"properties": {
"lock": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"path": {
"type": "string"
},
"locked_at": {
"type": "string"
},
"owner": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
},
"required": ["id", "path", "locked_at"]
},
"message": {
"type": "string"
},
"request_id": {
"type": "string"
},
"documentation_url": {
"type": "string"
}
},
"required": ["lock"]
}