Closed amh4r closed 3 years ago
@goodoldneon Sorry for my late response and thanks for this PR!
I just published version 2.2.0
which contains support for ajv-formats
. I've used this PR for inspiration so thank you for that!
I've added:
ajv-formats
supportpeerDependencies
ErrorObject.dataPath
to ErrorObject.instancePath
was renamed in version >= 2.0.0
Note: the output structure and generation options have been changed from version >= 2.0.0
. Make sure to remove your output folder before generating.
I will be closing this PR.
Great library! Here are fixes for some snags I hit.
ajv
andajv-format
aspeerDepedencies
. They're needed to consume the generated files, so I thought thatpeerDependencies
was another way to communicate that. The specific version ofajv
matters, andpeerDependencies
seems like a good way to point that out.ajv@8.0.0
which renamedErrorObject.dataPath
toErrorObject.instancePath
. The changelog can be found here.unknown format
warnings fordate-time
,int32
, andint64
. Thedate-time
warning was solved byajv-format
, but theint32
andint64
warnings weren't. However,int32
andint64
are sitting inmaster
(see this PR), so they should be in their next release.