frictionlessdata / tableschema-go

A Go library for working with Table Schema.
MIT License
46 stars 10 forks source link

Constraints are not correctly processed #92

Closed danielfireman closed 4 years ago

danielfireman commented 4 years ago

Overview

This example throws the following error:

2020/09/01 18:57:08 json: cannot unmarshal number into Go struct field schemaAlias.fields of type string
exit status 1

Please preserve this line to notify @danielfireman (lead of this repository)

danielfireman commented 4 years ago

The problem is that go constraints should defined as strings. Adding an example to clarify that.

danielfireman commented 4 years ago

Fixed by commit https://github.com/frictionlessdata/tableschema-go/commit/3cc64ed28c51c890b722e708d1c1874e16c2ae5f