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

Enable multiple serialisation strategies #104

Open
3 tasks
vmasek opened this issue Dec 2, 2020 · 0 comments
Open
3 tasks

Enable multiple serialisation strategies #104

vmasek opened this issue Dec 2, 2020 · 0 comments
Assignees
Labels
enhancement Request for a change or improvement of existing functionality feature request Proposal for a new feature
Milestone

Comments

@vmasek
Copy link
Member

vmasek commented Dec 2, 2020

Support multiple array (object?) serialization strategies for the (query) parameters and headers

  • create a wrapper function that will handle the serialisation based on the supported collectionFormat formats
    • Possible values are:
      • csv - (default) comma separated values foo,bar.
      • ssv - space-separated values foo bar.
      • tsv - tab separated values foo\tbar.
      • pipes - pipe separated values foo|bar.
      • multi - multiple parameter instances instead of multiple values for a single instance foo=bar&foo=baz. This is valid only for parameters in "query" or "formData".
  • configuration or function itself should be providable/configurable via DI
  • research what is the preferred/best way to serialize objects
    • JSON.stringyfy might be needed for the objects

A related issue with angular API client itself angular/angular#19071

@vmasek vmasek self-assigned this Dec 2, 2020
@vmasek vmasek added enhancement Request for a change or improvement of existing functionality feature request Proposal for a new feature labels Dec 18, 2020
@vmasek vmasek added this to the 5.0 milestone Oct 14, 2021
@vmasek vmasek moved this to In progress in Main board Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request for a change or improvement of existing functionality feature request Proposal for a new feature
Projects
Status: In progress
Development

No branches or pull requests

1 participant