|
68 | 68 | "date": {
|
69 | 69 | "description": "Manufacturing date according to ISO 8601 in notation YYYY-MM-DD",
|
70 | 70 | "type": "string",
|
71 |
| - "format": "date" |
| 71 | + "format": "date", |
| 72 | + "minLength": 10, |
| 73 | + "maxLength": 10, |
| 74 | + "pattern": "^\\d{4}-\\d{2}-\\d{2}$" |
72 | 75 | },
|
73 | 76 | "hw_ver": {
|
74 | 77 | "description": "Hardware version - integer",
|
|
85 | 88 | "rd_uid": {
|
86 | 89 | "description": "A randomly-generated 128-bit or longer octet string. Length has been expanded with 'hex:' prefix",
|
87 | 90 | "type": "string",
|
88 |
| - "pattern:": "^hex:{1}", |
| 91 | + "pattern": "^hex:([0-9A-Fa-f]{2}){16,}$", |
89 | 92 | "minLength": 20,
|
90 |
| - "minLength": 5, |
91 |
| - "maxLength": 36 |
| 93 | + "minLength": 36 |
92 | 94 | },
|
93 | 95 | "dac_cert": {
|
94 | 96 | "description": "DAC certificate in hex-string format",
|
95 | 97 | "type": "string",
|
96 |
| - "pattern:": "^hex:{1}([0-9A-Fa-f]){2,}", |
97 |
| - "minLength": 5, |
| 98 | + "pattern": "^hex:([0-9A-Fa-f]{2})+$", |
| 99 | + "minLength": 6, |
98 | 100 | "maxLength": 1204
|
99 | 101 | },
|
100 | 102 | "dac_key": {
|
101 | 103 | "description": "DAC Private Key in hex-string format",
|
102 | 104 | "type": "string",
|
103 |
| - "pattern:": "^hex:{1}([0-9A-Fa-f]){2,}", |
| 105 | + "pattern": "^hex:([0-9A-Fa-f]{2}){32}$", |
104 | 106 | "minLength": 68,
|
105 | 107 | "maxLength": 68
|
106 | 108 | },
|
107 | 109 | "pai_cert": {
|
108 | 110 | "description": "PAI certificate in hex-string format",
|
109 | 111 | "type": "string",
|
110 |
| - "pattern:": "^hex:{1}([0-9A-Fa-f]){2,}", |
111 |
| - "minLength": 5, |
| 112 | + "pattern": "^hex:([0-9A-Fa-f]{2})+$", |
| 113 | + "minLength": 6, |
112 | 114 | "maxLength": 1204
|
113 | 115 | },
|
114 | 116 | "passcode": {
|
|
126 | 128 | "spake2_salt": {
|
127 | 129 | "description": "A key-derivation function for the Symmetric Password-Authenticated Key Exchange.",
|
128 | 130 | "type": "string",
|
129 |
| - "pattern:": "^hex:{1}([0-9A-Fa-f]){2,}", |
| 131 | + "pattern": "^hex:([0-9A-Fa-f]{2})+$", |
130 | 132 | "minLength": 36,
|
131 | 133 | "maxLength": 68
|
132 | 134 | },
|
133 | 135 | "spake2_verifier": {
|
134 | 136 | "description": "A verifier for the Symmetric Password-Authenticated Key Exchange",
|
135 | 137 | "type": "string",
|
136 |
| - "pattern:": "^hex:{1}([0-9A-Fa-f]){2,}", |
| 138 | + "pattern": "^hex:([0-9A-Fa-f]{2})+$", |
137 | 139 | "minLength": 97
|
138 | 140 | },
|
139 | 141 | "discriminator": {
|
|
145 | 147 | "enable_key": {
|
146 | 148 | "description": "The Enable Key is a 128-bit value that triggers manufacturer-specific action while invoking the TestEventTrigger Command",
|
147 | 149 | "type": "string",
|
148 |
| - "pattern": "^hex:{1}([0-9A-Fa-f]){32}", |
| 150 | + "pattern": "^hex:([0-9A-Fa-f]{2}){16}$", |
149 | 151 | "minLength": 36,
|
150 | 152 | "maxLength": 36
|
151 | 153 | },
|
|
0 commit comments