|
39 | 39 | "description": "Binary buffers in the state",
|
40 | 40 | "type": "object",
|
41 | 41 | "properties": {
|
42 |
| - "paths": { |
43 |
| - "description" : "Array of paths in the state for the corresponding buffers", |
| 42 | + "buffers": { |
44 | 43 | "type": "array",
|
45 | 44 | "items": {
|
46 |
| - "description": "A path for a binary buffer value.", |
47 |
| - "type": "array", |
48 |
| - "items": { |
49 |
| - "description": "An object key or array index", |
50 |
| - "type": ["string", "number"] |
51 |
| - } |
| 45 | + "type": "object", |
| 46 | + "properties": { |
| 47 | + "path": { |
| 48 | + "description": "A path for a binary buffer value.", |
| 49 | + "type": "array", |
| 50 | + "items": { |
| 51 | + "description": "An object key or array index", |
| 52 | + "type": ["string", "number"] |
| 53 | + } |
| 54 | + }, |
| 55 | + "data": { |
| 56 | + "description" : "A binary buffer encoded as specified in the 'encoding' property", |
| 57 | + "type": "string" |
| 58 | + } |
| 59 | + }, |
| 60 | + "required": ["path", "data"] |
52 | 61 | }
|
53 | 62 | },
|
54 |
| - "data": { |
55 |
| - "description" : "Array of encoded binary buffers, encoded as specified in the 'encoding' property", |
56 |
| - "type": "array" |
57 |
| - }, |
58 | 63 | "encoding": {
|
59 |
| - "description": "The encoding of each item in the data property", |
| 64 | + "description": "The encoding of each buffer data property", |
60 | 65 | "type": "string",
|
61 | 66 | "oneOf": [
|
62 | 67 | {"enum": ["hex"], "description": "Base 16 encoding, as specified in RFC 4648, section 8 (https://tools.ietf.org/html/rfc4648#section-8)"},
|
|
65 | 70 | ]
|
66 | 71 | }
|
67 | 72 | },
|
68 |
| - "required": ["paths", "data", "encoding"] |
| 73 | + "required": ["buffers", "encoding"] |
69 | 74 | }
|
70 | 75 | },
|
71 | 76 | "required": [ "model_name", "model_module", "state" ]
|
|
0 commit comments