- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
您好,我目前正在从事一个使用 JSON schema form 的项目
在为具有递归架构引用的嵌套数组使用布局时不断出现以下错误
嵌套数组 getControl 错误:无法在 FormGroup 中找到“0”项。
示例:https://stackblitz.com/edit/angular-c1mzvk
递归引用示例:https://hamidihamza.com/ajsf/?set=ng-jsf&example=ng-jsf-deep-ref&framework=bootstrap-4&language=en
如果我不提供布局或设置 layout = ['*'],该表单将完美运行。如果我确实提供了一个,它就无法呈现表单
Github 不走运 issue要么
最佳答案
这是 stackbiltz 链接: https://stackblitz.com/edit/angular-zvsitp
我已将模式更改为下面提到的代码,并且我在控制台中没有看到任何错误。
schema = {
$schema: "http://json-schema.org/draft-07/schema#",
type: "object",
title: "Product Variant",
additionalProperties: false,
definitions: {
int: {
type: "number",
minimum: 0,
maximum: 10
},
string: {
type: "string",
minLength: 0
},
valueItem: {
type: "object",
properties: { value: { $ref: "#/definitions/int" } }
},
valueItemArray: {
type: "array",
items: { $ref: "#/definitions/valueItemArray" }
},
dtoArray: {
type: "array",
items: { $ref: "#/properties/staffLanguageLevelDto" }
},
},
properties: {
staffLanguageLevelDto: {
type: "object",
properties: {
id: { $ref: "#/definitions/int" },
staffId: {
allOf: [
{ $ref: "#/definitions/int" },
{ maximum: 5, title: "staffId (overriden maximum)" }
]
},
languageId: {
allOf: [
{ $ref: "#/definitions/valueItem" },
{ title: "languageId (object with custom title)" }
]
},
languageLevelId: { $ref: "#/definitions/int" },
languageName2: {
allOf: [
{ $ref: "#/definitions/string" },
{
default: "ole",
maxLength: 3,
title: "languageName2 (custom default & maxLength)"
}
]
},
languageLevelName: { $ref: "#/definitions/dtoArray" }
}
}
}
};
关于Angular-6-JSON 架构形式错误 : Nested Arrays getControl error: Unable to find "0" item in FormGroup,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60370101/
我正在尝试访问加载 fxml 的窗口的 Controller 类的实例。它加载时没有错误,但是当我尝试使用打印帐户数量时 System.out.println("from NAW: "+ NAC.ne
我是 JavaFX 的新手。谁能帮我? 这是我的代码 Stage stage = new Stage(); FXMLLoader loader = new FXMLLoader(); Parent r
我已经加载了 Google API 16 使用 Google API 16 编译 此行的错误是“无法解析 mapView” 删除了gen文件夹,清理干净 已重启 Eclipse 任何帮助将不胜感
我一直在为我的 JavaFX 学习做一个小应用程序。在应用程序中,我需要从主文件中单独获取 Controller ,所以我设计了这个: public class DiceObserver implem
我想通过谷歌地图检测用户位置并按照谷歌教程进行操作,但出现错误在第 6 行的 method(getController) 中,错误详细说明方法 getController() is undefined
本文整理了Java中net.sf.saxon.expr.XPathContextMajor.getController()方法的一些代码示例,展示了XPathContextMajor.getContr
从 dynamics-crm 2011 升级到 dynamics-crm 2013 后,我在尝试刷新 iframe 时遇到了一些问题。 以前,在 sdk 中,Microsoft 必须使用“Xrm.Pa
在 Symfony 5.3 中,我有一个 EventSubscriber 到 KernelEvents::CONTROLLER 事件。 class PrivateAPIEventSubscriber
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getControls()方法的一些代码示例,展示了WiresShape.get
本文整理了Java中com.ait.lienzo.client.core.shape.wires.WiresShape.getControl()方法的一些代码示例,展示了WiresShape.getC
尝试从 FXML 文件加载 Controller 时出现 LoadException。这是 FXML 文件:
您好,我目前正在从事一个使用 JSON schema form 的项目 在为具有递归架构引用的嵌套数组使用布局时不断出现以下错误 嵌套数组 getControl 错误:无法在 FormGroup 中找
以下代码适用于带有使用媒体 session 的控件的音乐通知播放器。每当我从通知中单击控件时,它就会崩溃并出现上述错误。请查看下面的代码,如果我错了请纠正我。在下面的代码中,我使用了媒体 sessio
我是一名优秀的程序员,十分优秀!