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
The issue and this page document -i as the fileId alias, but this option is registered only as --fileId, so invocations using -i <guid> are rejected as unknown. Add the short alias to the option declaration.
Shape role assignments and declare default text properties
The command logs the raw nested role-assignment objects, but the issue requires default text properties PrincipalId, Member/Title, and comma-separated RoleDefinitionBindings/Name. Without shaping those nested values (or extending the property filtering) and declaring the defaults, text output exposes the full response instead of the specified columns.
This new command page has no ## Permissions section, so users cannot determine the minimum delegated and application permissions required for the read request. Add the permissions table before the response section.
Add representative JSON, text, CSV, and Markdown examples
All four response examples are empty code blocks, so the reference page does not show the returned role-assignment shape and does not satisfy the required JSON, text, CSV, and Markdown samples. Add representative output for each format.
Migrate fileUrl/fileId validation to the Zod schema
This new command uses the legacy optionSets/validator pattern for the required fileUrl/fileId XOR. New command implementations use a refined Zod schema for this constraint (for example, file-version-keep.ts:12-47); migrate this validation so the command participates in the current option schema pipeline.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution @nanddeepn 🚀
Looks good overall, just a few tiny things to consider. One major thing is to use the Zod schema for command options, but our AI skill can help you save a time.
The reason will be displayed to describe this comment to others. Learn more.
Please use Zod schema instead of the old way.
You can use zod-migration skill. It will convert the current options to zod schema and modify unit tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds 'spo file roleassignment list' command. Closes #6191