Attachment rendering for posts & node descriptions.
This commit is contained in:
@@ -7,12 +7,14 @@ _file_embedded_schema = {
|
||||
}
|
||||
}
|
||||
|
||||
ATTACHMENT_SLUG_REGEX = '[a-zA-Z0-9_ ]+'
|
||||
|
||||
_attachments_embedded_schema = {
|
||||
'type': 'dict',
|
||||
# TODO: will be renamed to 'keyschema' in Cerberus 1.0
|
||||
'propertyschema': {
|
||||
'type': 'string',
|
||||
'regex': '^[a-zA-Z0-9_ ]+$',
|
||||
'regex': '^%s$' % ATTACHMENT_SLUG_REGEX,
|
||||
},
|
||||
'valueschema': {
|
||||
'type': 'dict',
|
||||
|
Reference in New Issue
Block a user