You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using NSwagStudio (v12.0.12.0) to generate a TypeScript client using the default settings with an OpenAPI specification, a default child instance is created for any objects with optional children not defined in the API's response. This does not happen when using a Swagger specification.
Using NSwagStudio (v12.0.12.0) to generate a TypeScript client using the default settings with an OpenAPI specification, a default child instance is created for any objects with optional children not defined in the API's response. This does not happen when using a Swagger specification.
Swagger spec:
OpenAPI spec:
TypeScript client generated by Swagger spec:
TypeScript client generated by OpenAPI spec:
The TypeScript client generated with OpenAPI has an extra block in the constructor of
ParentDto
to create a newChildDto
:and also creates a new
ChildDto
in theinit
method:whereas it would not before:
The text was updated successfully, but these errors were encountered: