atviriduomenys / spinta

Spinta is a framework to describe, extract and publish data (a DEP Framework).
MIT License
10 stars 4 forks source link

Add new `uuid` data type #660

Open sirex opened 1 week ago

sirex commented 1 week ago

Add new uuid datatype, which should be given as string and in internal PostgreSQL backend stored as uuid column type.

When accepting data, do a simple validation, if given value is a UUID.

External JSON representation: UUID hex form given as string. Internal python representation: uuid.UUID instance. Internal PostreSQL representation: UUID column type.