-
Notifications
You must be signed in to change notification settings - Fork 144
docs: add actorPermissionLevel to OpenAPI spec
#2135
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
Conversation
|
Preview for this PR was built for commit |
|
Preview for this PR was built for commit |
| enum: | ||
| - LIMITED_PERMISSIONS | ||
| - FULL_PERMISSIONS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could probably be made into a reusable component, but not really worth it, I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if we start autogenerating clients one day, it will be really helpful to have as much as possible in reusable components, so that we can link them e.g. to TypeScript constants easily.
barjin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please resolve my comments and feel free to merge (approving now to make things faster)
| actorPermissionLevel: | ||
| type: string | ||
| enum: | ||
| - LIMITED_PERMISSIONS | ||
| - FULL_PERMISSIONS | ||
| example: LIMITED_PERMISSIONS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the indentation doesn't match the rest of the document
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
| example: false | ||
| actorPermissionLevel: | ||
| type: string | ||
| nullable: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a description field with a simple text description (to both locations)? A few words and a link to docs would suffice really :)
fnesveda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, nothing to add to Jindra's and Honza's comments 🙂
|
Preview for this PR was built for commit |
|
Preview for this PR was built for commit |
|
Preview for this PR was built for commit |
|
Extracted it to a component. Added description with the link to Actor permissions docs. |
Adds missing
actorPermissionLevelto the Actor's OpenAPI spec.Note
Adds
actorPermissionLevelenum field toActorandUpdateActorRequestschemas and includes it in Update Actor request/response examples.components/schemas/actors/Actor.yaml: AddactorPermissionLevel(LIMITED_PERMISSIONS|FULL_PERMISSIONS, nullable) with example.components/schemas/actors/UpdateActorRequest.yaml: AddactorPermissionLevel(same enum/nullable) with example.paths/actors/acts@{actorId}.yaml(PUT Update Actor): IncludeactorPermissionLevelin request body example and response example.Written by Cursor Bugbot for commit bb08633. Configure here.