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
Copy file name to clipboardExpand all lines: docs/configuration.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,24 @@ When strict mode is enabled:
153
153
- object schema with omitted `additionalProperties` rejects unknown fields
154
154
- object schema with `additionalProperties: true` still allows unknown fields
155
155
156
+
## Strict Response Properties
157
+
158
+
By default, OpenAPI follows JSON Schema behavior for `required`: response object properties are optional unless explicitly listed in `required`.
159
+
160
+
If you want stricter response checks, enable `strict_response_properties`. In this mode, response object schemas are validated as if all documented properties were required, except properties marked as `writeOnly`.
This mode is intentionally stricter than the OpenAPI default and is useful for contract completeness checks in tests.
173
+
156
174
## Extra Format Validators
157
175
158
176
OpenAPI defines a `format` keyword that hints at how a value should be interpreted. For example, a `string` with the format `date` should conform to the RFC 3339 date format.
0 commit comments