Neoteroi / BlackSheep-Docs

Repository containing the documentation of BlackSheep web framework.
MIT License
1 stars 4 forks source link

Example of `query string parameters support lists` cannot be replicated #38

Closed ranggakd closed 7 months ago

ranggakd commented 9 months ago

Under the handling query string parameters section, I try to copy and paste this to my script

@get("/query-list")
def greetings_many(name: list[str]):
    return f"Hello, {', '.join(name)}!"

# example:
# http://localhost:44777/query-list?name=Charlie&name=Lisa&name=Snoopy
# --> Hello, Charlie, Lisa, Snoopy!

example

But it cannot be replicated just the way the example is shown in the documentation. It will prevent newcomer and beginner users from having a better understanding of the way BlackSheep handles query string parameters. Or did I just miss something here?

queries

RobertoPrevato commented 9 months ago

Hi @ranggakd Thank You for reporting this error and bug. I am resolving it today.

ranggakd commented 9 months ago

Thanks for the response. Please close this issue as soon as it is resolved.