|
14 | 14 | "type": "number"
|
15 | 15 | },
|
16 | 16 | "state": {
|
17 |
| - "description": "Model State for All Widget Models", |
| 17 | + "description": "Model State for All Widget Models - keys are model ids, values are model state", |
18 | 18 | "type": "object",
|
19 | 19 | "additionalProperties" : {
|
20 | 20 | "type": "object",
|
|
35 | 35 | "description" : "Serialized state of the model",
|
36 | 36 | "type": "object"
|
37 | 37 | },
|
38 |
| - "buffer_paths": { |
39 |
| - "description" : "Array of paths in the state for the corresponding buffers", |
40 |
| - "type": "array", |
41 |
| - "items": { |
42 |
| - "description": "A path for a binary buffer value.", |
43 |
| - "type": "array", |
44 |
| - "items": { |
45 |
| - "description": "An object key or array index", |
46 |
| - "anyOf": [{"type": "string"}, {"type": "number"}] |
47 |
| - } |
48 |
| - } |
49 |
| - }, |
50 | 38 | "buffers": {
|
51 |
| - "description" : "Array of base64-encoded binary buffers", |
52 |
| - "type": "array", |
53 |
| - "items": { |
54 |
| - "description": "A base64-encoded binary buffer", |
55 |
| - "type": "string" |
56 |
| - } |
| 39 | + "description": "Binary buffers in the state", |
| 40 | + "type": "object", |
| 41 | + "properties": { |
| 42 | + "paths": { |
| 43 | + "description" : "Array of paths in the state for the corresponding buffers", |
| 44 | + "type": "array", |
| 45 | + "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 | + } |
| 52 | + } |
| 53 | + }, |
| 54 | + "data": { |
| 55 | + "description" : "Array of encoded binary buffers, encoded as specified in the 'encoding' property", |
| 56 | + "type": "array" |
| 57 | + }, |
| 58 | + "encoding": { |
| 59 | + "description": "The encoding of each item in the data property", |
| 60 | + "type": "string", |
| 61 | + "oneOf": [ |
| 62 | + {"enum": ["hex"], "description": "Base 16 encoding, as specified in RFC 4648, section 8 (https://tools.ietf.org/html/rfc4648#section-8)"}, |
| 63 | + {"enum": ["base64"], "description": "Base 64 encoding, as specified in RFC 4648, section 4 (https://tools.ietf.org/html/rfc4648#section-4)"} |
| 64 | + |
| 65 | + ] |
| 66 | + } |
| 67 | + }, |
| 68 | + "required": ["paths", "data", "encoding"] |
57 | 69 | }
|
58 | 70 | },
|
59 | 71 | "required": [ "model_name", "model_module", "state" ]
|
|
0 commit comments