G
G
gitdev2021-07-21 02:25:41
Documentation
gitdev, 2021-07-21 02:25:41

How to implement an array in Swagger?

I need to get an array at the output that I can use in the swagger.yaml file. There can be any number of vacancies

{
    "data": {
        "vacancies": [
            {
                "vacancy_id": "B72",
                "title": "Russia country department",
                "department": "K",
                "location": "Russia",
                "url": "https://example.com/url/199"
            },
            {
                "vacancy_id": "B32",
                "title": "Ukraine country",
                "department": "D",
                "location": "Ukraine",
                "url": "https://example.com/url/175"
            },
            ...
        ]
    }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question