This commit is contained in:
@@ -169,6 +169,8 @@ class OapiFormServiceIT extends AnswerTestSupport {
|
||||
// 两份组装的漂移闸(问题单 P108):同库同表同版本,两种形态的 groups 必须逐字相同
|
||||
OapiModels.SchemaView byCode = oapiFormService.schema(SCH, null, CODE);
|
||||
assertThat(byUuid.getGroups().toString()).isEqualTo(byCode.getGroups().toString());
|
||||
// audience 换数组(C5/G3)后同样要过这条闸:两条寻址路径给的必须是同一个集合,不是各拼一遍
|
||||
assertThat(byUuid.getAudience()).isEqualTo(byCode.getAudience());
|
||||
// 内联展开 + valueSchema 的口径也一致(uuid 形态不是"半成品"schema)
|
||||
assertThat(field(byUuid.getGroups(), "grade").path("options").get(0).path("label").asText())
|
||||
.isEqualTo("高二年级");
|
||||
|
||||
Reference in New Issue
Block a user