By generating a TypeScript definition from the schema using openapi-typescript I noticed that the schema of several objects are very relaxed, not defining properties as required.
We should be more strict, and define properties as required if we are sure it should always exist.
This leads to a safer code.
By generating a TypeScript definition from the schema using openapi-typescript I noticed that the schema of several objects are very relaxed, not defining properties as
required
.We should be more strict, and define properties as
required
if we are sure it should always exist. This leads to a safer code.