fix subdomain name record schema validation

This commit is contained in:
Aaron Blankstein
2018-02-27 16:49:10 -05:00
parent 4397486087
commit a1f3874cf4

View File

@@ -384,7 +384,7 @@ NAMEOP_SCHEMA_PROPERTIES = {
'last_renewed': OP_HISTORY_SCHEMA['properties']['last_renewed'],
'name': {
'type': 'string',
'pattern': OP_NAME_PATTERN,
'pattern': OP_NAME_OR_SUBDOMAIN_PATTERN,
},
'op': OP_HISTORY_SCHEMA['properties']['op'],
'op_fee': OP_HISTORY_SCHEMA['properties']['op_fee'],