Closed navalex closed 1 month ago
Hi @navalex
Thank you very much for your contribution!
Could you please add some test cases?
Hi @valentinpalkovic, I'll try to that in the next week, keep you in touch! ;)
Never mind, I just added a simple test with a DateTime?
property to a simple datamodel, is it good for you or you want deeper test ?
I finished to fix the tests, it should pass the CI now
:tada: This PR is included in version 5.1.5 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Hey,
I noticed some warnings from my Fastify on some Date fields from my Prisma generated schemas. After some investigation, I found that when we have a properties with several possible types (with the
anyOf
key), for example a nullable Date, the generator do it wrong, because it put the"format": "date-time"
outside theanyOf
key, which is not correct.I made 2 tiny changes to remove the
format
key of the property root if there is aanyOf
key, and add theformat
inside theanyOf
if there's one, except for thenull
type.