You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I've been using the OpenAPI spec in tandem with a code generator for Typescript files. I have found that the rowFilter parameters are generating incorrectly. For a table like:
CREATE TABLE IF NOT EXISTS api.providers
(
id integer NOT NULL DEFAULT nextval('api.providers_id_seq'::regclass),
name character varying(256) COLLATE pg_catalog."default" NOT NULL,
active boolean NOT NULL DEFAULT true,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT providers_pkey PRIMARY KEY (id)
)
It makes sense that definitions.providers.properties.id is:
{
"description": "Note:\nThis is a Primary Key.<pk/>",
"format": "integer",
"type": "integer"
},
Hello, I've been using the OpenAPI spec in tandem with a code generator for Typescript files. I have found that the
rowFilter
parameters are generating incorrectly. For a table like:It makes sense that
definitions.providers.properties.id
is:HOWEVER, the definition for
rowFilter
is wrong:Because, the query syntax for filtering is
id=eq.<number>
, NOTid=<number>
.I believe it should omit the
format
field as below:Thanks!
The text was updated successfully, but these errors were encountered: