Slide 13
Slide 13 text
②ローコード・スキーマ
Copyright © Acroquest Technology Co., Ltd. All rights reserved. 13
# match(一致)
* match myJson == {a:'1', b:2}
# match contains(含む)
* def foo = {bar:1, baz:'hello', ban:'world'}
* match foo contains {bar: 1}
# パラメータの有無
* def test = {id:'001’, name:'Bob'}
• match test == {id:'001’, name:'#present’, age:'#notpresent’}
# 範囲
* def date = {month:3}
• match date == {month:'#? _ > 0 && _ < 13’}
# データの型
* def test = {foo:1, bar:‘baz’}
* match test == {foo:'#number’, bar:’#string’}
リクエストやレスポンス、アサーションの処理で必要となる
スキーマの処理を、標準で多数サポート
アサーション
Fuzzy Matching