How to reference one json schema in another json schema in RAML

Hello everyone.

How I can refer to one JSON schema in another JSON schema.

I have this schema, which I want to use in another schema:

{
“$schema”: “http://json-schema.org/draft-04/schema#”,
“title”: “fieldError”,
“description”: “Field specific error message”,
“type”: “object”,
“properties”: {
“code”: {
“type”: “string”
},
“field”: {
“type”: “string”
},
“message”: {
“type”: “string”
}
},
“required”: [
“field”,
“message”
]
}

Parent schema:
{
“$schema”: “http://json-schema.org/draft-04/schema#”,
“title”: “Error”,
“description”: “A common error response”,
“type”: “object”,
“properties”: {

"code": {
  "type": "string"
},
"more_info": {
  "type": "string"
},
"fieldErrors": {
  "type": "array",
  "items": {
    "$ref": "error.json"
  }
}

}
}