github samchon/nestia v1.5.8

latest releases: v3.14.0, v3.13.0, v3.12.2...
13 months ago

When an object type has an array typed property not undefindable, and being used in @TypedHeaders(), embeded validator function in the @TypedHeaders() had thrown a type error due to undefined value. To fix this bug, I've changed @TypedHeaders() to generate empty Array when target property value does not exist in the raw headers.

expoort interface ISomeHeadersDto {
    someArray: number[];
}

await api.functional.someApi({
      host: "http://127.0.0.1",
      headers: {
          someArray: [],
      }
});

What's Changed

  • Fix #521 - swagger query parameter type must have specific name by @samchon in #522
  • Fix @TypedHeaders() bug when zero length array comes by @samchon in #523
  • Fix test program bug, not of main program by @samchon in #524

Full Changelog: v1.5.6...v1.5.8

Don't miss a new nestia release

NewReleases is sending notifications on new releases.