@eudiplo/cli 10.0.0 → 10.1.0-main.58bb535
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1057 -2
- package/package.json +1 -1
- package/templates/demo-config/issuance/credentials/citizen.json +1 -1
- package/templates/demo-config/issuance/credentials/pid-key.json +1 -1
- package/templates/demo-config/issuance/credentials/pid-mdoc.json +4 -10
- package/templates/demo-config/issuance/credentials/pid.json +1 -1
- package/templates/demo-config/presentation/pid.json +1 -1
- package/templates/schemas/CredentialConfigCreate.schema.json +9 -1
- package/templates/schemas/CredentialConfigFile.schema.json +1033 -1
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://eudiplo.dev/schemas/
|
|
2
|
+
"$schema": "https://eudiplo.dev/schemas/v5/CredentialConfigFile.schema.json",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"generation": 1
|
|
5
5
|
},
|
|
@@ -172,11 +172,9 @@
|
|
|
172
172
|
"birth_date"
|
|
173
173
|
],
|
|
174
174
|
"type": "string",
|
|
175
|
+
"format": "date",
|
|
175
176
|
"defaultValue": "1964-08-12",
|
|
176
177
|
"mandatory": true,
|
|
177
|
-
"constraints": {
|
|
178
|
-
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
179
|
-
},
|
|
180
178
|
"display": [
|
|
181
179
|
{
|
|
182
180
|
"locale": "en-US",
|
|
@@ -212,11 +210,9 @@
|
|
|
212
210
|
"expiry_date"
|
|
213
211
|
],
|
|
214
212
|
"type": "string",
|
|
213
|
+
"format": "date",
|
|
215
214
|
"defaultValue": "2035-01-14",
|
|
216
215
|
"mandatory": true,
|
|
217
|
-
"constraints": {
|
|
218
|
-
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
219
|
-
},
|
|
220
216
|
"display": [
|
|
221
217
|
{
|
|
222
218
|
"locale": "en-US",
|
|
@@ -290,11 +286,9 @@
|
|
|
290
286
|
"issuance_date"
|
|
291
287
|
],
|
|
292
288
|
"type": "string",
|
|
289
|
+
"format": "date",
|
|
293
290
|
"defaultValue": "2025-01-14",
|
|
294
291
|
"mandatory": true,
|
|
295
|
-
"constraints": {
|
|
296
|
-
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
|
|
297
|
-
},
|
|
298
292
|
"display": [
|
|
299
293
|
{
|
|
300
294
|
"locale": "en-US",
|
|
@@ -676,6 +676,14 @@
|
|
|
676
676
|
],
|
|
677
677
|
"description": "Data type of the claim value."
|
|
678
678
|
},
|
|
679
|
+
"format": {
|
|
680
|
+
"description": "JSON Schema format of a \"string\" claim: \"date\" for an RFC 3339 full-date (YYYY-MM-DD), \"date-time\" for an RFC 3339 date-time. Claims that do not match are refused at issuance. mDOC credentials encode the claim as full-date (CBOR tag 1004, RFC 8943) or tdate (CBOR tag 0, in UTC with whole seconds); SD-JWT VC credentials issue the string unchanged. Only allowed with type \"string\".",
|
|
681
|
+
"type": "string",
|
|
682
|
+
"enum": [
|
|
683
|
+
"date",
|
|
684
|
+
"date-time"
|
|
685
|
+
]
|
|
686
|
+
},
|
|
679
687
|
"defaultValue": {
|
|
680
688
|
"description": "Optional default value for this field."
|
|
681
689
|
},
|
|
@@ -720,7 +728,7 @@
|
|
|
720
728
|
}
|
|
721
729
|
},
|
|
722
730
|
"constraints": {
|
|
723
|
-
"description": "Optional JSON Schema 2020-12 validation keywords for the claim value. Only the JSON Schema keywords listed under Constraints in the claims documentation are accepted (validation keywords such as pattern, minLength or enum, subschemas such as items or properties, and annotations); other keys, such as
|
|
731
|
+
"description": "Optional JSON Schema 2020-12 validation keywords for the claim value. Only the JSON Schema keywords listed under Constraints in the claims documentation are accepted (validation keywords such as pattern, minLength or enum, subschemas such as items or properties, and annotations); other keys, such as $ref or format (use the field's format instead), are refused.",
|
|
724
732
|
"$ref": "#/$defs/ClaimConstraints"
|
|
725
733
|
},
|
|
726
734
|
"children": {
|