raml-org / api-modeling-framework

DEPRECATED - This project has been moved
https://github.com/aml-org/amf
Other
27 stars 11 forks source link

Is appending '\\n' on descriptions on purpose? #63

Open sichvoge opened 7 years ago

sichvoge commented 7 years ago

I have a very simple RAML document:

#%RAML 1.0
title: Twilio Mule Extension API
baseUri: https://api.twilio.com/2010-04-01
description: |
  This is a test.

Running AMF, it seems that the parser appends \\n at the end of my description, which results into the following OAS:

{
  "basePath": "/2010-04-01",
  "host": "api.twilio.com",
  "info": {
    "description": "This is a test.\\n",
    "title": "Twilio Mule Extension API",
    "version": "1.0"
  }
}

And querying the graph, I also get a magic \ inside the description:

image

Is appending \\n on purpose or just a bug?