preaction / Yancy

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

Having a type=> string format => textarea field spews a warning to stderr because of missing format rule #125

Closed stephan48 closed 3 years ago

stephan48 commented 3 years ago

When having a schema where i manually define a type => string format => textarea field on each interaction via the API(or Editor) I get a warning in the log:

Format rule for 'textarea' is missing at /home/stephan/www/yancytest/local/lib/perl5/JSON/Validator.pm line 661.

According to preaction on IRC this could be simply fixed by adding a dummy format entry.

Refs: https://github.com/preaction/Yancy/blob/master/lib/Mojolicious/Plugin/Yancy.pm#L782-L804 https://github.com/preaction/Yancy/blob/master/lib/Yancy/Plugin/Editor.pm#L264-L268

In the same vein he mentioned that both of these paths could be unified presumably in Yancy::Util?

-- Stephan