зеркало из https://github.com/Azure/cadl-ranch.git
1
Details about mockapi rule
Yuchao Yan редактировал(а) эту страницу 2022-08-22 11:45:11 +08:00
mockapi rule about check logic in mockapi.ts
:
- Only check whether the required property exist like:
aa782b9653/packages/cadl-ranch-specs/http/models/input-basic/mockapi.ts (L7-L10)
- Comment the expected requstBody in
@scenarioDoc
ofmain.cadl
and check whether received requestBody is exactly same with expected requestBody like:c1aecffe73/packages/cadl-ranch-specs/http/models/collections-basic/mockapi.ts (L8-L9)
.
Both are ok and please choose one to implement the mockapi.ts