diff --git a/index.js b/index.js index b5a0d17..25177a0 100644 --- a/index.js +++ b/index.js @@ -310,6 +310,10 @@ function parseTypeDescription (parentSchema, name, typeDesc) { propertySchema.format = 'uri' } + if (option === 'date-time') { + propertySchema.format = 'date-time' + } + if (option === 'required') { parentSchema.required = parentSchema.required || [] parentSchema.required.push(name)