preaction / Yancy

The Best Web Framework Deserves the Best Content Management System
http://preaction.me/yancy/
Other
54 stars 21 forks source link

Error validating new item in schema "users" #79

Closed pavelsr closed 4 years ago

pavelsr commented 4 years ago

When I played with your CMS and demo project I got errors when trying to add new user:

Error validating new item in schema "users": /plugin: Expected string - got null
Error validating new item in schema "users":  (/created)

How to debug such errors ?

preaction commented 4 years ago

What command/steps were you running when you got that error? It looks like you're creating a user but not providing a plugin value or a created value. The plugin needs to be some string (part of supporting multiple authentication methods in Yancy::Plugin::Auth), and the created needs to be an ISO8601 datetime (YYYY-MM-DD HH:MM:SS, like 2019-01-01 14:45:12).

preaction commented 4 years ago

Closing this issue until further information can be provided