Validation rules for values
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Kotlin
- スター
- 69
- フォーク
- 4
- 平均マージ
- 7日 3時間
- マージ済み PR(30日)
- 7
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
typesafegithub/github-actions-typing のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
typesafegithub/github-actions-typing#345 · コメント 3 件 · リアクション 1 件 ·
-
Add typing: pair オープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
Dependency Dashboard オープン
難易度 1/5 1時間未満 初心者へのやさしさ 15/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
typesafegithub/github-actions-typing#17 · リアクション 1 件 ·
typesafegithub/github-actions-typing の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Richie97/track-history#325 ·
-
bug CLI documentation reliability
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
KW-related Type:bug UI / UX
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
RevenueCat/purchases-android#4299 · コメント 1 件 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
AAswordman/Operit#1265 · コメント 3 件 ·