therapy
Version, currently 0.1.01 version
- 0.1.0latestJan 31, 2026
github.com/matthewmcgarvey/therapy
No description declared in shard.yml.
6 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
therapy:
github: matthewmcgarvey/therapy
version: ~> 0.1.0Then run:
shards installshard.yml
- Crystal
1.6.2- License
- MIT
- Author
- matthewmcgarvey
Dependencies
This version declares no dependencies.
README
Therapy
Get it? Therapy... validation... come on!
Installation
-
Add the dependency to your
shard.yml:dependencies: therapy: github: matthewmcgarvey/therapy -
Run
shards install
Usage
require "therapy"
sign_up_form = Therapy.object(
email: Therapy.string,
password: Therapy.string,
confirm: Therapy.string
).validate("Confirm must match password", path: ["password"]) do |form|
form[:password] == form[:confirm]
end
json = JSON.parse(request.body)
sign_up = sign_up_form.parse!(json) #=> NamedTuple(email: String, password: String, confirm: String)
See DOCS.md for full type reference, coercions, and validations.
Development
TODO: Write development instructions here
TODO
- more validations/transformations
Contributing
- Fork it (https://github.com/matthewmcgarvey/therapy/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
- matthewmcgarvey - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.0- Tagged
- Jan 31, 2026
- Commit
b8d92e45f005- Crystal
1.6.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/matthewmcgarvey/therapy
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1