Q42 / openapi-typescript-validator

Generate typescript with ajv validation based on openapi schemas
26 stars 14 forks source link

Add peer deps and missing ajv formats #1

Closed amh4r closed 3 years ago

amh4r commented 3 years ago

Great library! Here are fixes for some snags I hit.

timvansteenis commented 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:

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.