Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YML metadata does not support objects/arrays in it #941

Open
GreepTheSheep opened this issue Jul 21, 2022 · 1 comment
Open

YML metadata does not support objects/arrays in it #941

GreepTheSheep opened this issue Jul 21, 2022 · 1 comment

Comments

@GreepTheSheep
Copy link

GreepTheSheep commented Jul 21, 2022

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": """"
}
@danieldll099
Copy link

agreed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants