Skip to content

Enable multiple serialisation strategies #104

Open
@vmasek

Description

@vmasek

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

Metadata

Metadata

Assignees

Labels

enhancementRequest for a change or improvement of existing functionalityfeature requestProposal for a new feature

Type

No type

Projects

Status

In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions