showdown icon indicating copy to clipboard operation
showdown copied to clipboard

YML metadata does not support objects/arrays in it

Open GreepTheSheep opened this issue 2 years ago • 1 comments

I'm trying to get datas that have objects and arrays on it in a YML format, but it returns something wrong

.md file:

description: Remove a track by its UID from your favorite tracks
route: /api/token/map/favorite/{mapUid}/remove
method: POST
parameters:
    path:
        mapUid:
            type: string
            description: The UID of the map
            required: true
            default: ""

Returned object:

Excepted:

{
    "description": "Remove a track by its UID from your favorite tracks",
    "route": "/api/token/map/favorite/{mapUid}/remove",
    "method": "POST",
    "parameters": {
        "path": {
            "mapUid": {
                "type": "string",
                "description": "The UID of the map",
                "required": true,
                "default": ""
            }
        }
    }
}

Actual:

{
"description": "Remove a track by its UID from your favorite tracks",
"route": "/api/token/map/favorite/{mapUid}/remove",
"method": "POST",
"parameters: path:     mapUid:         type: string         description: The UID of the map         required: true         default": """"
}

GreepTheSheep avatar Jul 21 '22 20:07 GreepTheSheep

agreed

danieldll099 avatar Jul 21 '22 20:07 danieldll099