Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to 'use Raisin::Types' somewhere #2

Closed
LLFourn opened this issue May 19, 2014 · 4 comments
Closed

Need to 'use Raisin::Types' somewhere #2

LLFourn opened this issue May 19, 2014 · 4 comments
Assignees

Comments

@LLFourn
Copy link

LLFourn commented May 19, 2014

If you don't have 'use Raisin::Types' this in your RaisinApp (as in example). It will stuff up.
eg

$ raisin --routes --params api.pl
GET     //user
Can't locate object method "name" via package "Raisin::Types::Integer" (perhaps you forgot to load "Raisin::Types::Integer"?) at .../bin/raisin line 62..
@khrt khrt self-assigned this May 20, 2014
khrt pushed a commit that referenced this issue May 21, 2014
@khrt
Copy link
Owner

khrt commented May 21, 2014

I decided to include use Raisin::Types into documentation rather than include Raisin::Types into Raisin application by default.
I made in that way because I think that Raisin::Types is just an example types and it's not necessary to include in every user application but if user want it he/she could include it instead of making his own types.

@khrt khrt closed this as completed May 21, 2014
@LLFourn
Copy link
Author

LLFourn commented May 21, 2014

On that note have you thought about using Type::Tiny https://metacpan.org/pod/Type::Tiny::Manual
instead of the one you rolled yourself?

@khrt
Copy link
Owner

khrt commented May 21, 2014

I didn't know about Type::Tiny before. It's interesting, I'll think about it.

@khrt
Copy link
Owner

khrt commented Jun 18, 2014

Rewritten to able to use Type::Tiny and any compatible with it type constraints.

@khrt khrt assigned khrt and unassigned khrt Oct 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants