Zendro-dev / graphql-server-model-codegen

Command line utility to auto-generate the structure files for a graphql server
MIT License
1 stars 2 forks source link

BulkAddCsv fails to upload strings composed of only digits #139

Closed vsuaste closed 4 years ago

vsuaste commented 4 years ago

When trying to upload a csv document where string fields are composed of only digits, an AJV validation error is received. For example if we have a model where the id is of type string and the record's id is "37463838" at some point in the csv parsing this is changed to Int, and AJV will throw a validation error.

Please note that this error doesn't happen when creating a single record. This error has to do with CSV parsing.

vsuaste commented 4 years ago

Done. Commit: #3018e7