go-playground / validator

:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
MIT License
16.07k stars 1.29k forks source link

MongoDB validator improved #1196

Closed pixel365 closed 1 month ago

pixel365 commented 7 months ago

Enhances

Added MongoDB connection string validation

Make sure that you've checked the boxes below before you submit PR:

@go-playground/validator-maintainers

coveralls commented 7 months ago

Coverage Status

coverage: 74.179% (+0.3%) from 73.903% when pulling 99a8d67eba5561ddc1a5dc9afd3b0413f9582185 on pixel365:mongodb into 84254aeb5a59e615ec0b66ab53b988bc0677f55e on go-playground:master.

deankarn commented 5 months ago

I'm not sure it would be best to have one validation do two different things, otherwise you wouldn't be able to differentiate for error messages and alike what exactly failed.

pixel365 commented 5 months ago

I'm not sure it would be best to have one validation do two different things, otherwise you wouldn't be able to differentiate for error messages and alike what exactly failed.

I agree with this remark. Added a separate tag.

pixel365 commented 1 month ago

@deankarn Hi, how about this pull request?