Skip to content

List Response Model #775

Open
Open
@Domhnall-Liopa

Description

@Domhnall-Liopa

I want to document my response model as a list of strings like:

[
    "value1", 
    "value2"
]

which is valid JSON.
So I want to be able to do something like:

response_model = ns.model('Response', [
    fields.String()
])

Is there a way of doing this currently without having to use a dict object in ns.model?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions