Spring REST Docs に問題があり、リクエスト本文内のフィールドの詳細なドキュメントを妨げています。
@Transactional
@RequestMapping(path = "/edit", method = RequestMethod.POST)
public ResponseEntity<Void> edit(
@RequestParam("id") Long id,
@RequestBody TreeItemResource root)
およびドキュメントのテスト:
@Test
public void edit() throws Exception {
//...
this.getMockMvc(this.controller).perform(post("/edit"))
.andDo(document("root",
requestFields(
subsectionWithPath("childs"))));
}
このテストには多くの時間が必要で、出力は次のようになります。
root.childs[].childs[].childs[].childs[].childs[].childs[].path
どうすればこれを防ぐことができますか?