Skip to content

Validate values against a schema, readOnly/writeOnly and empty bodies - #96

Merged
byjg merged 3 commits into
masterfrom
7.0
Oct 26, 2026
Merged

byjg merged 3 commits into
masterfrom
7.0

Conversation

@byjg

@byjg byjg commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Adds Schema::matchDefinition() to match a value against a named schema outside a request or a response (used by gluo-core to validate models on save). readOnly properties are now required only in responses and writeOnly only in requests, and an empty JSON body ([], {}) is no longer taken for a missing one. The constraint and empty-body tests run on Swagger 2.0, OpenAPI 3.0 and 3.1.

@byjg
byjg merged commit 2830693 into master Oct 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant