Skip to content

Add descriptions to OpenAPI schema properties#5339

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

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

Conversation

@crtahlin
Copy link
Copy Markdown
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
akrem-chabchoub and others added 15 commits January 8, 2026 11:13
Co-authored-by: Janoš Guljaš <janos@resenje.org>
…rsphere#5187)

Co-authored-by: Janoš Guljaš <janos@resenje.org>
Co-authored-by: Ljubisa Gacevic <ljubisa.rs@gmail.com>
Co-authored-by: Ljubiša Gačević <35105035+gacevicljubisa@users.noreply.github.com>
Co-authored-by: Ljubisa Gacevic <ljubisa.rs@gmail.com>
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
Copy Markdown

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
@acud
Copy link
Copy Markdown
Contributor

acud commented Mar 22, 2026

@crtahlin closing this since this seems to be out of sync with the existing spec and the changeset is not really making any sense anymore.

if this is still relevant can you open a new PR with a reasonable changeset so that we could review it? also, if the changeset is big - please consider splitting it to multiple PRs. thanks!

@acud acud closed this Mar 22, 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.