This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Description
When I include a .json file for define a type, parser includes schemaPath attribute with its path.
But for .yaml files, parser doesn't keep file path.
Could you please do something similar like .json for .yaml files?
Thanks.
parser output
{
"types": [
{
"Address": {
"name": "Address",
"typePropertyKind": "TYPE_EXPRESSION",
"type": [
"object"
],
"description": "Address details,",
"properties": {
"streetName": {
"name": "streetName",
"typePropertyKind": "TYPE_EXPRESSION",
"type": [
"string"
]
}
}
}
},
{
"Address2": {
"name": "Address2",
"typePropertyKind": "JSON",
"schemaPath": "Address.json",
"type": [
"{\n \"type\": \"object\",\n \"description\": \"Address details\",\n \"properties\": {\n \"streetName\": { \"type\": \"string\" }\n },\n \"required\": [ \"streetName\" ]\n}\n"
]
}
}
],
"title": "My API With Types"
}
api.raml
#%RAML 1.0
title: My API With Types
types:
Address: !include Address.yaml
Address2: !include Address.json
Address.yaml
type: object
description: Address details,
properties:
streetName:
type: string
Address.json
{
"type": "object",
"description": "Address details",
"properties": {
"streetName": { "type": "string" }
},
"required": [ "streetName" ]
}