Json模式异常使用Json模式在Mule中创建元数据类型时无协议错误
我使用名为stores.JSON的JSON模式在Mule 3.8.1中添加元数据类型,该模式包含引用organization.JSON模式的属性Json模式异常使用Json模式在Mule中创建元数据类型时无协议错误,json,mule,jsonschema,anypoint-studio,metadatatype,Json,Mule,Jsonschema,Anypoint Studio,Metadatatype,我使用名为stores.JSON的JSON模式在Mule 3.8.1中添加元数据类型,该模式包含引用organization.JSON模式的属性 "organization": { "$ref": "definitions/common/organization.json" }, 但我得到了一个错误: Error creating metadata... org.mule.common.metadata.parser.json.SchemaException: java.net.Malf
"organization": {
"$ref": "definitions/common/organization.json"
},
但我得到了一个错误:
Error creating metadata...
org.mule.common.metadata.parser.json.SchemaException:
java.net.MalformedURLException: no protocol:
definitions/common/organization.json
organization.json模式位于:src/main/api/schemas/definitions/common,stores.json位于:src/main/api/schemas
谢谢看起来您正在Anypoint Studio的当前旧版本中创建元数据,该版本可能存在读取模式的错误。Mule Runtime 3.x不创建元数据。请尝试使用当前版本的Anypoint Studio(目前为6.5.x)检查其是否已修复。是否可以发布整个架构?您是否设置了
id
字段?