ExodusMovement / schemasafe

A reasonably safe JSON Schema validator with draft-04/06/07/2019-09/2020-12 support.
https://npmjs.com/@exodus/schemasafe
MIT License
155 stars 12 forks source link

Error: Unrecognized format used: "int32" #175

Open FedericoDesio opened 9 months ago

FedericoDesio commented 9 months ago

Hi all, i'm trying to generate API tests dynamically by parsing the Swagger ("swagger": "2.0"), i get this error:

Error: Unrecognized format used: "int32"

this is the portion of the schema

                    "items": {
                        "type": "object",
                        "properties": {
                            "XXXId": {
                                "format": "int32",
                                "description": "The id of XXX this item belongs to",
                                "type": "integer"
                            },

I tried to replace "int32" with "integer" same error.

Thank you in advance, Federico