Danilo Spinelli
Danilo Spinelli
> The generated code is for the client don't we use these types on the server part as well?
I cannot make pull requests against this repository but, what about a refactor using standard io-ts types instead of custom quasi-typeguards methods? https://gist.github.com/gunzip/bdfbbd5e3fbceeccacd96f5bbe064b15 (just double check expecially the encoding parts)
I've update the gist to use identity for encoding in case that's what you want to. My concern with the current version are: 1. methods that return booleans should be...
Just note with the code in the gist you will decode from the `unknown` type (I don't know the context where these types will be used). This is fine if...
lgtm
hi @ioggstream, may you remind me why is this a draft and the status of open PR that can be safely merged into this repo: https://github.com/teamdigitale/io-utils/pulls?utf8=%E2%9C%93&q=is%3Aopen+is%3Apr+-author%3Aapp%2Fdependabot-preview+ cc @francescopersico probably we...
probably it does not work with io-ts 2.x (try using the same version of io-utils package)
indeed, since we chose to maintain compatibility with other projects, we never took a look into upgrading. of course that would be useful, any help is appreciated :)
I cannot reproduce the issue. Which version of nodejs ? how did you install the package ? (npm or yarn ?) you may try with ` yarn ts-node src/index --api-spec...
@cloudify can you check this PR and default vaules pls ?