From e5a48ad85590b21c6256604e2769f19039fe1603 Mon Sep 17 00:00:00 2001 From: Simonas Karuzas Date: Wed, 20 Apr 2022 22:58:47 +0300 Subject: [PATCH] fix(core): plugin schema --- packages/core/plugin.schema.json | 90 +++++++++++++++++--------------- 1 file changed, 47 insertions(+), 43 deletions(-) diff --git a/packages/core/plugin.schema.json b/packages/core/plugin.schema.json index eaa16cef5..625e9c2a0 100644 --- a/packages/core/plugin.schema.json +++ b/packages/core/plugin.schema.json @@ -148,7 +148,7 @@ "items": { "$ref": "#/components/schemas/VerificationMethod" }, - "deprecated": "" + "deprecated": true } }, "required": [ @@ -174,48 +174,7 @@ "type": "string" }, "publicKeyJwk": { - "type": "object", - "properties": { - "alg": { - "type": "string" - }, - "crv": { - "type": "string" - }, - "e": { - "type": "string" - }, - "ext": { - "type": "boolean" - }, - "key_ops": { - "type": "array", - "items": { - "type": "string" - } - }, - "kid": { - "type": "string" - }, - "kty": { - "type": "string" - }, - "n": { - "type": "string" - }, - "use": { - "type": "string" - }, - "x": { - "type": "string" - }, - "y": { - "type": "string" - } - }, - "required": [ - "kty" - ] + "$ref": "#/components/schemas/JsonWebKey" }, "publicKeyHex": { "type": "string" @@ -236,6 +195,51 @@ "controller" ] }, + "JsonWebKey": { + "type": "object", + "properties": { + "alg": { + "type": "string" + }, + "crv": { + "type": "string" + }, + "e": { + "type": "string" + }, + "ext": { + "type": "boolean" + }, + "key_ops": { + "type": "array", + "items": { + "type": "string" + } + }, + "kid": { + "type": "string" + }, + "kty": { + "type": "string" + }, + "n": { + "type": "string" + }, + "use": { + "type": "string" + }, + "x": { + "type": "string" + }, + "y": { + "type": "string" + } + }, + "required": [ + "kty" + ], + "description": "Encapsulates a JSON web key type that includes only the public properties that can be used in DID documents.\n\nThe private properties are intentionally omitted to discourage the use (and accidental disclosure) of private keys in DID documents." + }, "ServiceEndpoint": { "type": "object", "properties": {