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
{{ message }}
Repository navigation
feat: report invalid fields in the permissions API #760
FOCA 0.22 reports invalid fields of requests as InvalidFieldsProblem (code: invalid-request, with errors listing each field by JSON Pointer or parameter), so apps can tell clients exactly what to fix. The endpoints of FOCA's own permissions API (/permissions, used by apps with access control) don't do this yet: invalid requests there still get a plain 400 Bad Request with only a detail.
Proposal: raise InvalidFieldsProblem from the permissions API's own checks (subjects, roles, rule fields), with stable codes, and never quote rejected values in errors, as for the app endpoints. Document the codes next to the existing ones; apps then get it by upgrading FOCA.
Activity