close
Skip to content

Allow null indexes on formSerializer and paramsSerializer v0.x - #4961

Merged
jasonsaayman merged 3 commits into
axios:v0.xfrom
WillianAgostini:allow-null-indexes-v0.x
Sep 29, 2022
Merged

Allow null indexes on formSerializer and paramsSerializer v0.x#4961
jasonsaayman merged 3 commits into
axios:v0.xfrom
WillianAgostini:allow-null-indexes-v0.x

Conversation

@WillianAgostini

@WillianAgostini WillianAgostini commented Sep 15, 2022

Copy link
Copy Markdown
Contributor

Fixes #4959
Docs: automatic-serialization-to-formdata

Allow indexes to receive null value.

axios.create({
  headers: {
    'Content-Type': 'application/json',
  },
  formSerializer: {
    indexes: null,
  },
  paramsSerializer: {
    indexes: null,
  },
});

Axios Version: v0.x

Willian Agostini added 2 commits September 15, 2022 10:26
Param indexes from formSerializer and paramsSerializer receiving null

Closes axios#4959
@jasonsaayman
jasonsaayman merged commit c4bf0a4 into axios:v0.x Sep 29, 2022
@adamsuskin

Copy link
Copy Markdown

@jasonsaayman can we tag a new hotfix version for this 0.27.3?

@WillianAgostini
WillianAgostini deleted the allow-null-indexes-v0.x branch February 17, 2023 03:26
@nancy-alpha

Copy link
Copy Markdown

@jasonsaayman @adamsuskin I'm also interested in a 0.27.3 version with this fix, if it's possible!

shaanmajid pushed a commit to shaanmajid/axios that referenced this pull request Jul 16, 2026
…#4961)

* test: Failed test

Param indexes from formSerializer and paramsSerializer receiving null

Closes axios#4959

* fix: Allow null to indexes in SerializerOptions

Closes axios#4959

Co-authored-by: Willian Agostini <willian.agostini@fleetcor.com.br>
Co-authored-by: Jay <jasonsaayman@gmail.com>
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

Successfully merging this pull request may close these issues.

4 participants