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.

Provide validation or enums for Service Level Tiers

See original GitHub issue

Currently all service level tiers, such as database tiers, are all strings.

It is currently very hard to build applications to validate input for these things. Are there plans to introduce enums or validation components which we can use to validate input on?

I’m aware of classes such as DatabaseEditions but these are not really helping since we need to check each property of these classes instead of having a TryParse on an enum.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
milismsftcommented, Feb 28, 2018

Yes, this will be addressed in the coming update.

0reactions
tomkerkhovecommented, Mar 6, 2018

Awesome, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

A good practice to present service level validation errors ...
The choice is typically exceptions vs. error codes (or response codes), but the best practice, at least Bloch's, is to only use exceptions...
Read more >
Why would you store an enum in DB?
Create verification code that checks to see that each value in the enumeration is in the corresponding table, and that only those values...
Read more >
User Levels, Enums and Policies, oh my! · Laravel Bytes
Using Enums to add a level structure to users, and using Policies to authorize actions based on those user levels.
Read more >
Validations for Enum Types
Learn how to build validations for enums using Java custom annotations.
Read more >
What you need to know about GraphQL enums
Learn how GraphQL enums can help you build more robust and discoverable ... is to provide validation out of the box on operations...
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