Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Last active May 30, 2024 06:06
Show Gist options
  • Save masaru-b-cl/71f9e92d3a47504e78642e79fd016235 to your computer and use it in GitHub Desktop.
Save masaru-b-cl/71f9e92d3a47504e78642e79fd016235 to your computer and use it in GitHub Desktop.
アンスコをキーに持つJSONのテスト
{
"_hoge": "piyo"
}
desc: アンスコをキーに持つJSONのテスト
runners:
req: https://gist.githubusercontent.com/
steps:
- req:
/masaru-b-cl/71f9e92d3a47504e78642e79fd016235/raw/f0f248e49a800b2c992086f67f3f985b5db73a9a/test.json:
get:
body:
application/json: null
test: |
current.res.status == 200
- dump: steps[0].res.body
- dump: steps[0].res.rawBody
@masaru-b-cl
Copy link
Author

application/jsonレスポンスのbodyに"_"始まりのキーがあると、step.res.bodyにマップされない - 読者コミュニティ|runn クックブック
https://zenn.dev/k1low/scraps/cf7c7ef06f9051#comment-09dd556854be74

用のテストコード

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment