PostgREST / postgrest-openapi

OpenAPI output generated in SQL for a PostgREST instance
MIT License
17 stars 4 forks source link

Verify how to parse some special default values for arrays, timezones, etc. #6

Open laurenceisla opened 1 year ago

laurenceisla commented 1 year ago

Need to verify how to parse some special default values, e.g. arrays have two types of defaults: {1,2,3}::integer[] and ARRAY[1,2,3] (which can be parsed) but composite types or even timestamps sometimes return complex defaults which are not accepted by the OpenAPI spec (e.g.: timezone('utc'::text, now())). Maybe add another x-pgrst-sql-default for complex types and leave default for integers, text, etc.

_Originally posted by @laurenceisla in https://github.com/laurenceisla/postgrest-openapi/pull/3#discussion_r1198483329_