Skip to content

docs: Auto-generated OpenAPI spec for miner HTTP endpoints (Fixes #23)#52

Open
shadow6427 wants to merge 2 commits into
Dipraise1:mainfrom
shadow6427:main
Open

docs: Auto-generated OpenAPI spec for miner HTTP endpoints (Fixes #23)#52
shadow6427 wants to merge 2 commits into
Dipraise1:mainfrom
shadow6427:main

Conversation

@shadow6427

Copy link
Copy Markdown

This PR generates an OpenAPI 3 specification from the miner's route definitions.

Features:

  • docs/openapi.yaml auto-generated containing schemas mapped from engram.protocol (IngestSynapse, QuerySynapse, ChallengeSynapse, KeyShareSynapse, KeyShareRetrieve).
  • Includes complete Auth Scheme documentation outlining the sr25519 signed-challenge hotkey, nonce, and signature JSON payload verification schema.
  • Added scripts/generate_openapi.py to auto-generate the YAML using Pydantic model_json_schema() and dynamic AST parsing of neurons/miner.py.
  • Added .github/workflows/openapi.yml CI check that asserts the spec stays perfectly in sync with the codebase.

This addresses the bounty requirements for Issue #23.

@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

@shadow6427 is attempting to deploy a commit to the praise's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant