CareSet / DURC

DURC is reverse CRUD
MIT License
3 stars 2 forks source link

Validation Layer At Model Level #54

Closed kchapple closed 4 years ago

kchapple commented 4 years ago

Validator layer idea ->

Catch fields without defaults not being filled in.

Catch things you thought were numeric being filed in as string

Catch things you thought were integers that are actually decimal numbers

Catching strings that are longer than you made space for in the varchar

fields in the JSON that are not in the schema???

top level (i.e. not a subarray) that is not being filled in… generate a warning?

Cannot pass null to a non-nullable value.

kchapple commented 4 years ago

When running from command-line, this is what the validator should output on bad data.

Screen Shot 2020-05-01 at 2 16 51 PM
seanccsmith commented 4 years ago

Works perfectly.