Closed Mark12870 closed 3 years ago
@Mark12870 I apologise for the delay in addressing this, there will be a version with a refactored parser for types and guards released soon.
As of right now, you can rewrite the line to
( typeof arg.metadata === 'undefined' || typeof arg.metadata === 'object' ) &&
While the property doesn't have type. Swagger example:
(According to https://editor.swagger.io/ it is valid syntax.)
The generator will generate in
guards/index.ts
this line of code:But the function
isany()
doesn't exists.