frictionlessdata / tableschema-js

A JavaScript library for working with Table Schema.
http://frictionlessdata.io/
MIT License
82 stars 27 forks source link

Handling braces in uuid #157

Closed loleg closed 5 years ago

loleg commented 5 years ago

Currently tableschema-js throws errors when Strings of type uuid have curly braces, for example an identifier like {7a7db7ee-6c68-42ff-bfd9-53578c4dcb86}. As far as I can tell, braces around UUID's are not part of the IETF spec, nevertheless I have encountered braces being output by other software. At least in Python, when parsing from strings the curly braces, hyphens and prefixes (urn:uuid:...) are optional.

n0rdlicht commented 5 years ago

QGIS also adds curly braces for some reason and describes uuid() in the documentation as outputting 38 characters (which includes the braces).

roll commented 5 years ago

I don't see we can support it until it's allowed by the specs. Can you please open an issue for a discussion there - https://github.com/frictionlessdata/specs/issues?

I'm closing it for now as wontfix. Please re-open if you think there is still a good way to support it only on the libs level.

roll commented 5 years ago

PS. What I meant that software you mentioned generates actually invalid data so the lib has to raise it.