Skip to content

Add descriptions to OpenAPI schema properties#5339

Open
crtahlin wants to merge 1 commit intoethersphere:masterfrom
crtahlin:docs/openapi-descriptions
Open

Add descriptions to OpenAPI schema properties#5339
crtahlin wants to merge 1 commit 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

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
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.

3 participants