Jaymon / endpoints

Lightweight REST api backend framework that automatically maps urls to python modules and classes
MIT License
29 stars 10 forks source link

@param type argument #76

Closed Jaymon closed 6 years ago

Jaymon commented 6 years ago
@param(0, default=None, type=Foo.query.get_pk)

The above snippet should work but @sqpierce reported that it doesn't, we should look into this and figure out why it isn't doing what was expected

Jaymon commented 6 years ago

when testing this, also try:

@param(0, default=None, type=lambda x: Foo.query.get_pk(x))

And see if that works. I'm thinking it might be a thing with running tests