Skip to content

Add descriptions to OpenAPI schema properties#5339

Open
crtahlin wants to merge 2582 commits intoethersphere:masterfrom
crtahlin:docs/openapi-descriptions
Open

Add descriptions to OpenAPI schema properties#5339
crtahlin wants to merge 2582 commits intoethersphere:masterfrom
crtahlin:docs/openapi-descriptions

Conversation

@crtahlin
Copy link
Contributor

Summary

Add detailed descriptions to schema properties across both Swarm.yaml and SwarmCommon.yaml to improve API documentation clarity. This helps developers understand what each field means without having to dig through the source code.

Schemas updated:

  • Node info: Addresses, BzzTopology, PeerMetricsView, BlockListedPeers
  • Chain state: ReserveState, ChainState, AccountingInfo, Settlement, Settlements
  • Postage: PostageBatch, PostageBatchShort, PostageStampBuckets, StampBucketData
  • Wallet/Transactions: WalletResponse, TransactionInfo, ChequebookBalance
  • Status: RedistributionStatusResponse, StatusSnapshotResponse
  • Proofs: ApiChunkInclusionProof, ApiPostageProof, ApiSOCProof
  • ACT: ActGranteesOperationResponse, PostEnvelopeResponse
  • Other: FeedType, Logger, PinCheckResponse

Parameters updated:

  • SwarmRedundancyLevelParameter - detailed explanation of each level
  • immutable header in /stamps/{amount}/{depth}
  • Withdrawal parameters in /wallet/withdraw/{coin}

Test plan

  • Verify OpenAPI spec validates correctly
  • Review rendered documentation for accuracy

istae and others added 30 commits August 16, 2024 16:33
martinconic and others added 17 commits January 2, 2026 12:09
…rsphere#5187)

Co-authored-by: Janoš Guljaš <[email protected]>
Co-authored-by: Ljubisa Gacevic <[email protected]>
Co-authored-by: Ljubiša Gačević <[email protected]>
Add detailed descriptions to schema properties across both Swarm.yaml and
SwarmCommon.yaml to improve API documentation clarity:

- Addresses, BzzTopology, PeerMetricsView, BlockListedPeers schemas
- ReserveState, ChainState, AccountingInfo, Settlement schemas
- PostageBatch, PostageBatchShort, PostageStampBuckets schemas
- WalletResponse, TransactionInfo, ChequebookBalance schemas
- RedistributionStatusResponse, StatusSnapshotResponse schemas
- ApiChunkInclusionProof, ApiPostageProof, ApiSOCProof schemas
- ActGranteesOperationResponse, PostEnvelopeResponse schemas
- FeedType, Logger, PinCheckResponse schemas
- SwarmRedundancyLevelParameter, immutable and withdrawal parameters
@Cafe137
Copy link

Cafe137 commented Feb 2, 2026

This also partially addresses #5226

@acud acud added this to the v2.8.0 milestone Feb 4, 2026
@crtahlin crtahlin force-pushed the docs/openapi-descriptions branch from 2fd2583 to 3e7efd6 Compare March 13, 2026 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.