emmett-framework / emmett

The web framework for inventors
BSD 3-Clause "New" or "Revised" License
1.06k stars 71 forks source link

Validation of ip #248

Closed RaphaelBonaque closed 5 years ago

RaphaelBonaque commented 5 years ago

I tried using a field to represent an ip as follows, on python3

ip_address = Field('string', validation={'is': 'ip'})

However I get two validation problems at insert time:

I tried the following:

This worked for my particular case but I don't know if this is a general solution.

I started using weppy this afternoon so I might be missing something.

gi0baro commented 5 years ago

@RaphaelBonaque thank you, will fix this in the next release