Skip to content

Sync evaluation schemas with the final 1.0 text - #599

Open
kanywst wants to merge 1 commit into
openid:mainfrom
kanywst:fix/schemas-match-final-1_0
Open

Sync evaluation schemas with the final 1.0 text#599
kanywst wants to merge 1 commit into
openid:mainfrom
kanywst:fix/schemas-match-final-1_0

Conversation

@kanywst

@kanywst kanywst commented Jul 31, 2026

Copy link
Copy Markdown

The schemas under api/schemas/ still encode the draft-01 model, and reject the specification's own examples.

evaluation-response.schema.json constrains the Decision context to the draft-01 Reasons object, requiring an id member and forbidding anything else. Section 5.5.1 defines context as an object with no required members, and Section 5.5.2 places its semantics and format outside the scope of the specification. evaluation-request.schema.json sets additionalProperties: false, contradicting Section 10.1.1: receivers MUST ignore unknown fields. The $comment anchors point at authorization-api-1_0-01.html, and two of them use #name-access-evaluation-decision, which no longer resolves in the published document.

This relaxes context to a plain object, drops additionalProperties: false from the request schema, and repoints the anchors.

Checked with Draft 2020-12: the Section 7.2 and 7.1.2.1 response examples and the Obligations profile context.obligations shape are rejected before and accepted after.

Fixes #598.

The schemas still encoded the draft-01 model: a Reasons-shaped Decision
`context`, `additionalProperties: false` on the request, and `$comment`
anchors pointing at authorization-api-1_0-01.html.

Signed-off-by: kanywst <niwatakuma@icloud.com>
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.

Fix evaluation JSON schemas to match the final 1.0 text

1 participant