12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- {
- "$schema": "http://json-schema.org/draft/2020-12/schema",
- "type": "array",
- "uniqueItems": true,
- "items": {
- "type": "object",
- "oneOf": [
- {
- "type": "object",
- "properties": {
- "action": {
- "enum": [
- "add"
- ]
- },
- "when": {
- "type": "string",
- "pattern": "^([0-9a-f]{40}|\\d{4}\\.\\d{2}\\.\\d{2})$"
- },
- "hash": {
- "type": "string",
- "pattern": "^[0-9a-f]{40}$"
- },
- "short": {
- "type": "string"
- },
- "authors": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "action",
- "short"
- ]
- },
- {
- "type": "object",
- "properties": {
- "action": {
- "enum": [
- "remove"
- ]
- },
- "when": {
- "type": "string",
- "pattern": "^([0-9a-f]{40}|\\d{4}\\.\\d{2}\\.\\d{2})$"
- },
- "hash": {
- "type": "string",
- "pattern": "^[0-9a-f]{40}$"
- }
- },
- "required": [
- "action",
- "hash"
- ]
- },
- {
- "type": "object",
- "properties": {
- "action": {
- "enum": [
- "change"
- ]
- },
- "when": {
- "type": "string",
- "pattern": "^([0-9a-f]{40}|\\d{4}\\.\\d{2}\\.\\d{2})$"
- },
- "hash": {
- "type": "string",
- "pattern": "^[0-9a-f]{40}$"
- },
- "short": {
- "type": "string"
- },
- "authors": {
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- },
- "required": [
- "action",
- "hash",
- "short",
- "authors"
- ]
- }
- ]
- }
- }
|