I am using Anypoint Studio 6.2 with Mule 3.8.1 and I have added a raml and JSON schema which shows no errors in api-workbench but show Json schema invalid errors in Anypoint Studio.
I have found that if I remove the required field from all of my Json schemas linked to the raml (i.e. raml, traits and types) then everything works. Is there a way to fix this?
The required syntax I am using is:
"required": [
"Organisation",
"Address"
],
Updated
and I am also seeing a org.mule.common.metadata.parser.json.SchemaException: java.net.MalformedURLException: no protocol:
where the $ref cannot be resolved when using the JSON schema to create a metadata type to use in Dataweave:
{
"id": "http://localhost:8000/schemas/products.json#",
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Products",
"type": "object",
"properties": {
"Products": {
"$ref": "common/text.json"
}
},
"additionalProperties": false
}
Thanks