Validation rules for values
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 28/100
Research direction
No files, tests, or entry points are named in the issue. Start by locating the definitions for integer, float, and string types and the consumer or generation code; done means supporting min/max and regex constraints, documenting the regex flavor, and leaving enum, list, and boolean behavior unchanged.
Written by the indexing model from the issue text.
Description
Sometimes it would be nice to be able to specify some additional validation rules that restrict the basic types further.
For example if you use integer for a port value, it would be nice to be able to say min: 1 and max: 65535, or a regex for some string values.
So what I have in mind right now was exactly that. min and max for integer and float and regex or however called for string. enum, list, and boolean are probably already restricted enough per-se.
A consumer of the typing could then also generate according validation code.
In some languages you can define a type directly like that, other languages have annotations with such validation information, yet other languages can generate runtime validation code.
When adding this, please keep in mind to clearly document which regex flavor has to be used by both sides.
- Dominant language
- Kotlin
- Stars
- 69
- Forks
- 4
- Avg merge
- 7d 3h
- Merged PRs (30d)
- 7
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from typesafegithub/github-actions-typing
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
typesafegithub/github-actions-typing#345 · 3 comments · 1 reaction ·
-
Add typing: pair Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Dependency Dashboard Open
Difficulty 1/5 Under an hour Newbie friendliness 15/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
typesafegithub/github-actions-typing#17 · 1 reaction ·
All issues in typesafegithub/github-actions-typing
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
johanhaleby/occurrent#1120 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
2 rename bugs Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ankidroid/Anki-Android#21999 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
openwallet-foundation/multipaz#2028 ·