Commit 085f9c28 authored by anton's avatar anton
Browse files

Set defaults for selector.js

parent 75143acc
......@@ -7,7 +7,7 @@ const selectorSchema = (opts = {}) => {
type: {
type: String,
enum: ['FragmentSelector'],
required: true
default: 'FragmentSelector'
},
value: {
type: String,
......@@ -29,7 +29,8 @@ const selectorSchema = (opts = {}) => {
},
conformsTo: {
type: String,
enum: ['http://www.w3.org/TR/media-frags/']
enum: ['http://www.w3.org/TR/media-frags/'],
default: 'http://www.w3.org/TR/media-frags/'
}
}
return opts.isSubdocument ? new opts.Schema(schema) : schema
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment