cartesi / openapi-interfaces

HTTP interfaces specified with OpenAPI.
Apache License 2.0
2 stars 7 forks source link

Review schema required properties #3

Closed tuler closed 1 year ago

tuler commented 1 year ago

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.