jaimegildesagredo / booby

Data modeling and validation Python library
https://booby.readthedocs.org
Other
176 stars 18 forks source link

It would be nice if the repr for fields was a bit more detailed #20

Closed drawks closed 10 years ago

drawks commented 10 years ago

When using inspection or even just manually inspecting _fields it would be nice if it was more obvious what validators and decorators might be in play. Particularly it would be nice to be able to see what fields are required and which are nullable. I think manipulating the repr property of Field objects as they are modified would be a relatively backwards compatible way of achieving this.

jaimegildesagredo commented 10 years ago

Hi @drawks!

It is an interesting improvement. I'll start working on it.

Only a question:

[...] what validators and decorators might be in play

What do you mean by decorators?

drawks commented 10 years ago

For instance you've implemented "nullable" as a decorator....

jaimegildesagredo commented 10 years ago

Fixed and released.