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

Documenting a request body as an array? #767

Open
speckins opened this issue Jul 14, 2022 · 1 comment
Open

Documenting a request body as an array? #767

speckins opened this issue Jul 14, 2022 · 1 comment

Comments

@speckins
Copy link

While I see how to document arrays for responses, I can't figure out how to do the same for a request body. Is this possible with apipie? E.g.,

POST /users
[
    {"username": "user1"},
    {"username": "user2"}
]

This question has been asked before but closed unanswered (#320).

@mathieujobin
Copy link
Collaborator

It would probably require a patch to support this properly. First step would be to write a test. If you have time, I can review and release. But I'm afraid, it is unlikely someone else picks up this task for you.

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