docs: document KeyEndorsementPolicy class for State-Based Endorsement (#307)#500
Open
JhaSourav07 wants to merge 1 commit intohyperledger:mainfrom
Open
docs: document KeyEndorsementPolicy class for State-Based Endorsement (#307)#500JhaSourav07 wants to merge 1 commit intohyperledger:mainfrom
JhaSourav07 wants to merge 1 commit intohyperledger:mainfrom
Conversation
Signed-off-by: Sourav <souravkjha2007@gmail.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR Closes ** #307** by adding documentation for the
KeyEndorsementPolicyclass to the official Node.js reference documentation.The
KeyEndorsementPolicyclass is essential for implementing State-Based Endorsement (SBE) but was previously missing from the generated API docs.This update ensures the class and its methods are properly documented and visible in the generated documentation, improving discoverability and developer usability.
Changes
Documentation Configuration
docs/_jsdoc.jsonto includelibraries/fabric-shim/lib/utils/statebased.jsin the source scanning path so the class is included during documentation generation.JSDoc Enhancements
Added comprehensive JSDoc comments for the
KeyEndorsementPolicyclass and its methods:addOrgsdelOrgslistOrgsgetPolicyTypeScript Definitions
KeyEndorsementPolicyclass tolibraries/fabric-shim/types/index.d.ts.Library Export
KeyEndorsementPolicyis correctly exported inlibraries/fabric-shim/index.jsso it can be used by consumers.Verification
npm run buildinside thedocsfolder. TheKeyEndorsementPolicyclass now appears in the sidebar with full method documentation.npm run lintinsidelibraries/fabric-shimwith 0 errors.rush rebuildfor the entire monorepo.Checklist
Screenshots
Closes #307