We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35b6246 commit 5e28302Copy full SHA for 5e28302
1 file changed
aiscript-runtime/src/parser.rs
@@ -378,14 +378,14 @@ mod tests {
378
"""Test endpoint"""
379
query {
380
"""field name"""
381
- name: str = "hello"
382
- age: int = 18
+ name: str = "hello",
+ age: int = 18,
383
}
384
body {
385
"""field a"""
386
@length(max=10)
387
- a: str
388
- b: bool = false
+ a: str,
+ b: bool = false,
389
390
391
let greeting = "Hello" + name;
@@ -494,11 +494,11 @@ mod tests {
494
495
@string(max_len=10)
496
@not(@string(min_len=5))
497
- field: str
+ field: str,
498
@in(["a" ,"b", "c"])
499
- x: str = "a"
+ x: str = "a",
500
@in([1, 2, 3])
501
- y: int = 1
+ y: int = 1,
502
@any(@in(["a", "b"]), @string(min_len=1))
503
z: str
504
0 commit comments