RicoSuter/NJsonSchema

Axios processResponse failing for empty array

Open

#1,304 opened on Jan 16, 2021

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C# (550 forks)github user discovery
help wantedproject: NJsonSchema.CodeGeneration.TypeScripttype: bug

Repository metrics

Stars
 (1,578 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Hi,

The processResponse fails here result200 = JSON.parse(resultData200); if resultData200 is []

Generated from AspNetCore 3.1 for Axios

Versions: NSwag.AspNetCore 13.10.1 NSwag.MSBuild 13.10.1

Contributor guide