Commit 0897378
authored
feat: allow single value in enum type (#264)
Part of #253.
There may be cases where someone wants to make the users explicitly say
some single value of enum, e.g. like we discussed here:
typesafegithub/github-actions-typing-catalog#45 (comment)
This is what we already allow in the schema.1 parent f9d0e25 commit 0897378
File tree
2 files changed
+23
-3
lines changed- src
- jvmMain/kotlin/it/krzeminski/githubactionstyping/validation/types
- jvmTest/kotlin/it/krzeminski/githubactionstyping/validation
2 files changed
+23
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
314 | 334 | | |
315 | 335 | | |
316 | 336 | | |
317 | 337 | | |
318 | | - | |
| 338 | + | |
319 | 339 | | |
320 | 340 | | |
321 | 341 | | |
| |||
0 commit comments