Skip to content

Conversation

@ivanauth
Copy link

Summary

Add documentation comments to permissionship enum values explaining their meaning and when they are returned during normal API operation.

Fixes #151

Changes

  • Document PERMISSIONSHIP_UNSPECIFIED, PERMISSIONSHIP_NO_PERMISSION, PERMISSIONSHIP_HAS_PERMISSION, and PERMISSIONSHIP_CONDITIONAL_PERMISSION in:
    • authzed/api/v1/permission_service.proto (CheckPermissionResponse.Permissionship)
    • authzed/api/v1/debug.proto (CheckDebugTrace.Permissionship)
    • authzed/api/materialize/v0/watchpermissions.proto (PermissionChange.Permissionship)
  • Document LOOKUP_PERMISSIONSHIP_* values in authzed/api/v1/permission_service.proto
  • Update docs/apidocs.swagger.json with the new documentation

Added documentation explaining what each Permissionship value means and when
it's returned. The CONDITIONAL_PERMISSION docs point to the specific fields
where you can find caveat details for each context (partial_caveat_info in
CheckPermissionResponse, caveat_evaluation_info in CheckDebugTrace, etc).

Also documented LookupPermissionship and regenerated the swagger docs.
@ivanauth
Copy link
Author

Closing in favor of #152 which was opened earlier and addresses the same issue #151

@ivanauth ivanauth closed this Nov 26, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Nov 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add documentation to enum values that won't be returned in normal operation

1 participant