简体   繁体   English

使用Json模式在Mule中创建元数据类型时,Json模式异常无协议错误

[英]Json schema exception no protocol error when creating a metadata type in Mule using a Json schema

I am adding a metadata type in Mule 3.8.1 using a JSON schema called stores.json which contains a property that references an organization.json schema 我正在使用称为stores.json的JSON模式在Mule 3.8.1中添加元数据类型,该JSON模式包含引用organization.json模式的属性

"organization": {
  "$ref": "definitions/common/organization.json"
},

but I am getting the error: 但是我得到了错误:

Error creating metadata... 
org.mule.common.metadata.parser.json.SchemaException:
java.net.MalformedURLException: no protocol:
definitions/common/organization.json

The organization.json schema is located at: src/main/api/schemas/definitions/common and the stores.json is located at: src/main/api/schemas Organization.json模式位于: src / main / api / schemas / definitions / common ,stores.json位于: src / main / api / schemas

Thanks 谢谢

Looks like you are creating the metadata in a currently older version of Anypoint Studio which probably has a bug for reading the schema. 看起来您是在Anypoint Studio的当前较旧版本中创建元数据,该版本可能存在读取架构的错误。 Mule Runtime 3.x doesn't create the metadata. Mule Runtime 3.x不会创建元数据。 Try the current version of Anypoint Studio (6.5.x at this time) to check if it is fixed. 尝试使用当前版本的Anypoint Studio(当前为6.5.x)来检查是否已修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM