From 39709442eccb3c2955cdc97dc71a3b2efd12ee09 Mon Sep 17 00:00:00 2001 From: Jude Nelson Date: Wed, 20 Jun 2018 18:50:49 -0400 Subject: [PATCH] name records can have a resolver field --- blockstack/lib/schemas.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/blockstack/lib/schemas.py b/blockstack/lib/schemas.py index 2bc91197c..ab5bf4f27 100644 --- a/blockstack/lib/schemas.py +++ b/blockstack/lib/schemas.py @@ -326,6 +326,16 @@ OP_HISTORY_SCHEMA = { }, ], }, + 'resolver': { + 'anyOf': [ + { + 'type': 'string', + }, + { + 'type': 'null', + }, + ], + }, 'txid': { 'type': 'string', 'pattern': OP_TXID_PATTERN, @@ -398,6 +408,16 @@ NAMEOP_SCHEMA_PROPERTIES = { 'op_fee': OP_HISTORY_SCHEMA['properties']['op_fee'], 'opcode': OP_HISTORY_SCHEMA['properties']['opcode'], 'revoked': OP_HISTORY_SCHEMA['properties']['revoked'], + 'resolver': { + 'anyOf': [ + { + 'type': 'string', + }, + { + 'type': 'null', + }, + ], + }, 'sender': OP_HISTORY_SCHEMA['properties']['sender'], 'sender_pubkey': OP_HISTORY_SCHEMA['properties']['sender_pubkey'], 'sequence': OP_HISTORY_SCHEMA['properties']['sequence'],