fix: Add required OpenAPI items object when the paramater is an array

This commit is contained in:
Laurence Isla
2022-12-20 12:30:28 -05:00
committed by GitHub
parent e0df95844b
commit 1f69757835
5 changed files with 252 additions and 10 deletions
-2
View File
@@ -512,13 +512,11 @@ tablesSqlQuery pgVer =
CASE
WHEN t.typtype = 'd' THEN
CASE
WHEN bt.typelem <> 0::oid AND bt.typlen = (-1) THEN 'ARRAY'::text
WHEN nbt.nspname = 'pg_catalog'::name THEN format_type(t.typbasetype, NULL::integer)
ELSE format_type(a.atttypid, a.atttypmod)
END
ELSE
CASE
WHEN t.typelem <> 0::oid AND t.typlen = (-1) THEN 'ARRAY'::text
WHEN nt.nspname = 'pg_catalog'::name THEN format_type(a.atttypid, NULL::integer)
ELSE format_type(a.atttypid, a.atttypmod)
END