No description
- Crystal 100%
| db/migrations | ||
| docs | ||
| spec | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| app.env | ||
| README.md | ||
| shard.lock | ||
| shard.yml | ||
crylog
TODO: Write a description here
Installation
TODO: Write installation instructions here
Usage
TODO: Write usage instructions here
Development
TODO: Write development instructions here
Schemer
Incoming JSON payloads are validated and unpacked declaratively. See docs/schemer.md for the full guide, examples and the extension points. Quick taste:
struct PostCreate
include JSON::Serializable
include Schemer::Validatable
@[Schemer::Validate(required: true, min_length: 1, max_length: 200)]
getter title : String
end
payload = PostCreate.require(env.request.body || "{}") # 400 via Schemer::Kemal.register!
Contributing
- Fork it (https://github.com/your-github-user/crylog/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- m3xan1k - creator and maintainer