Skip to content

Remove javadoc style comments. #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions authzed/api/v1/core.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,17 @@ message Relationship {
ContextualizedCaveat optional_caveat = 4 [ (validate.rules).message.required = false ];
}

/**
* ContextualizedCaveat represents a reference to a caveat to be used by caveated relationships.
* The context consists of key-value pairs that will be injected at evaluation time.
* The keys must match the arguments defined on the caveat in the schema.
*/
// ContextualizedCaveat represents a reference to a caveat to be used by caveated relationships.
// The context consists of key-value pairs that will be injected at evaluation time.
// The keys must match the arguments defined on the caveat in the schema.
message ContextualizedCaveat {
/** caveat_name is the name of the caveat expression to use, as defined in the schema **/
// caveat_name is the name of the caveat expression to use, as defined in the schema
string caveat_name = 1 [ (validate.rules).string = {
pattern : "^([a-zA-Z0-9_][a-zA-Z0-9/_|-]{0,127})$",
max_bytes : 128,
} ];

/** context consists of any named values that are defined at write time for the caveat expression **/
// context consists of any named values that are defined at write time for the caveat expression
google.protobuf.Struct context = 2 [ (validate.rules).message.required = false ];
}

Expand Down
6 changes: 3 additions & 3 deletions authzed/api/v1/permission_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ message CheckPermissionRequest {
// subject is the subject that will be checked for the permission or relation.
SubjectReference subject = 4 [ (validate.rules).message.required = true ];

/** context consists of named values that are injected into the caveat evaluation context **/
// context consists of named values that are injected into the caveat evaluation context
google.protobuf.Struct context = 5 [ (validate.rules).message.required = false ];
}

Expand Down Expand Up @@ -384,7 +384,7 @@ message LookupResourcesRequest {
// subject is the subject with access to the resources.
SubjectReference subject = 4 [ (validate.rules).message.required = true ];

/** context consists of named values that are injected into the caveat evaluation context **/
// context consists of named values that are injected into the caveat evaluation context
google.protobuf.Struct context = 5 [ (validate.rules).message.required = false ];

// optional_limit, if non-zero, specifies the limit on the number of resources to return
Expand Down Expand Up @@ -455,7 +455,7 @@ message LookupSubjectsRequest {
max_bytes : 64,
} ];

/** context consists of named values that are injected into the caveat evaluation context **/
// context consists of named values that are injected into the caveat evaluation context
google.protobuf.Struct context = 6 [ (validate.rules).message.required = false ];
}

Expand Down