Merge chaintracks OpenAPI docs, add CDN support, and improve Docker configuration#21
Merged
Merge chaintracks OpenAPI docs, add CDN support, and improve Docker configuration#21
Conversation
Signed-off-by: Deggen <d.kellenschwiler@bsvassociation.org>
Signed-off-by: Deggen <d.kellenschwiler@bsvassociation.org>
Signed-off-by: Deggen <d.kellenschwiler@bsvassociation.org>
Signed-off-by: Deggen <d.kellenschwiler@bsvassociation.org>
Collaborator
|
@sirdeggen - converted back to draft
|
- Fix .gitignore: anchor 'arcade' to '/arcade' (root binary only) so cmd/arcade/openapi.go and cmd/arcade/static/ are no longer ignored - Add cmd/arcade/openapi.go, openapi_test.go, static/chaintracks-openapi.yaml which implement runtime OpenAPI spec merging for the Scalar UI docs - Exclude CVE-2026-26958 (filippo.io/edwards25519 CWE-665) from Nancy scan; transitive dep via teranode@v0.13.2 used only through go-sql-driver/mysql (not directly affected path); cannot pin v1.2.0 without breaking mod-tidy Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Break mergeOpenAPISpecs (complexity 41) into focused helpers: parseSpecs, getOrCreateMap, mergeChainstacksPaths, isLegacyPathItem, isLegacyOperation, buildPrefixedPath, mergeChaintracksTags, prefixChaintracksTag, mergeChaintracksSchemas, updatePrefixedPathTags, updateOperationTags, updateSchemaRef — each under gocyclo threshold - Replace chained if/else-if on tagStr with switch (QF1003 staticcheck) - Extract updateSchemaRef helper to flatten nestif in updateSchemaRefs - Eliminate ok variable shadowing by scoping to individual functions - Add nolint:gochecknoglobals on embed var (required by Go embed spec) - Refactor TestMergeOpenAPISpecs: extract hasChaintracksPath and hasPrefixedChaintracksTag helpers to reduce cyclomatic complexity Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Remove //nolint:gochecknoglobals on embed var (linter exempts it automatically, making the directive itself flagged as unused by nolintlint) - Rename outer ok to hasTags in mergeChaintracksTags to avoid shadowing by inner ok declarations in the for loop body - Rename ok to hasTx in TestMergeOpenAPISpecs to avoid shadowing the paths, ok := declaration at line 73 (govet shadow) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
galt-tr
approved these changes
Feb 24, 2026
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.
Summary
This PR integrates chaintracks documentation and CDN functionality into the arcade server, improves Docker configuration for native architecture builds, and adds production-ready environment variable defaults.
Key Changes
1. Merged OpenAPI Documentation
/docsUI/chaintracks/v1/*and/chaintracks/v2/*2. CDN Static File Serving
/chaintracks/3. Docker Native Architecture Builds
4. Production Environment Configuration
teranode-eks-mainnet-eu-1-propagation.bsvb.tech,teranode-eks-mainnet-us-1-propagation.bsvb.techteranode-eks-mainnet-eu-1.bsvb.tech/api/v1debugfor troubleshooting5. Documentation Updates
Files Changed (vs origin/main)
DEPLOY.md- 44 insertions, 12 deletionsDockerfile- 10 insertions, 7 deletionscmd/arcade/main.go- 29 insertions, 3 deletionsdocker-compose.yaml- 20 insertions, 4 deletionsgo.mod- 2 changesTotal: 5 files changed, 78 insertions(+), 27 deletions(-)
Testing
Start with production mainnet configuration:
Verify all functionality:
All endpoints working correctly with merged documentation.
🤖 Generated with Claude Code