jhthorsen / json-validator

:cop: Validate data against a JSON schema
https://metacpan.org/release/JSON-Validator
56 stars 58 forks source link

Cleaner blog example #135

Closed jhthorsen closed 5 years ago

jhthorsen commented 5 years ago

Summary

This PR tries to clean up the blog example.

Motivation

@kraih gave me some feedback in #mojo.

kraih commented 5 years ago

While the example application gets a bit better with the changes, the file backend is still a big distracting hack with the serialization. Why do you want to teach that?

jhthorsen commented 5 years ago

The example illustrates that even the files are all strings, then joi() makes sure that the output structure also contains true booleans and numbers.

jhthorsen commented 5 years ago

This might sound a bit weird, but I'm going to merge this PR and then move the whole example into a separate branch. The reason for this is that I think the changes are an improvement, but the example as a whole has gotten some critique.