Closed softmarshmallow closed 1 month ago
Have a look at #1947 and especially https://github.com/PostgREST/postgrest/issues/1947#issuecomment-1003597415. None of your observations are considered to be as we'd like it to be, so don't expect it to stay like that.
I am building a postgREST openapi parser, and trying to tell if the property is
null
ornot null
byrequired: [...]
It seems like properties with
default
value are also included inrequired
, so it is safe to interpret it asnot null
, but forVIEW
, told by where onlyget
method is allowed,required
is not present.I'm wondering If I can rely on this spec and interpretation.
Is it by design or a mistake? - for me since the
required
represents for bothread
create
(as properties with default value are still present in required), the VIEW should also have arequired
spec for representingnull | not null