question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider adding validators package

See original GitHub issue

Currently a lot of python tools just throw exceptions at us or even uses: .is_valid() and .errors properties. It is not type-safe at all. Sometimes it is hard to explain to people how to really use type-driven design and make invalid states unreachable.

My idea is that we need to write thin wrappers around popular typed validation packages: like pydantic, cerebrus, schema, etc to return really typed things.

We also need to think about API to be expressive and recognisable enough.

Related: https://gist.github.com/maksbotan/14b4bebda2acab98cdd158f85a970855 CC @maksbotan

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:4
  • Comments:16 (13 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

In Angular, how to add Validator to FormControl after control is ...
Here's an example showing how you can add validators to an existing FormControl: this.form.controls["firstName"].setValidators([Validators.
Read more >
Package Validation - .NET Blog - Microsoft Developer Blogs
Package Validation tooling will allow library developers to validate that their packages are consistent and well-formed. It involves validating ...
Read more >
Validate - Go Packages
Package validator implements value validations for structs and individual fields based on tags. It can also handle Cross-Field and Cross-Struct validation ...
Read more >
Package validator implements struct field validations - GitHub
Then one needs to add it to the list of validators and give it a "tag" name. validator.SetValidationFunc("notzz", notZZ).
Read more >
validator - npm
String validation and sanitization. Latest version: 13.7.0, last published: a year ago. Start using validator in your project by running ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found