Skip to content

v2.0.0 - Affinity API v2 Documentation Pipeline

Choose a tag to compare

@yaniv-golan yaniv-golan released this 02 Dec 17:33
· 40 commits to main since this release

This major release introduces automated synchronization of Affinity API v2 documentation alongside the existing v1 pipeline, along with significant improvements to the v1 documentation accuracy.

✨ Highlights

  • New v2 Sync Pipeline - Automated extraction and rendering of Affinity API v2 documentation from the Redoc OpenAPI spec at developer.affinity.co
  • 24,000+ lines of v2 docs - Comprehensive API v2 reference now available at docs/v2/affinity_api_docs.md
  • Extensive v1 fixes - Dozens of documentation accuracy fixes validated against the live API docs

🆕 Added

  • Affinity API v2 sync pipeline (tools/v2_sync_pipeline/)
    • Fetches Redoc OpenAPI payload from developer.affinity.co
    • Dereferences $ref schemas and flattens nested structures
    • Renders tag-based chapters, schema appendices, and error references
    • Synthesizes cURL examples from the OpenAPI specification
    • Publishes to docs/v2/affinity_api_docs.md
  • v2 test coverage - Pytest suite for the renderer and spec loader with spec-coverage guard
  • QA tooling - Link checker and live comparison helper scripts
  • Parser guards - Section-bounded parser keeping examples scoped to their endpoints
  • Example validation pipeline - Override system with warnings in metadata

🔄 Changed

  • CI/CD workflows now run both v1 and v2 sync pipelines with link checking
  • Python toolchain pinned to 3.11.4 for consistency
  • v2 markdown renderer improvements:
    • Human-readable endpoint summaries as section titles
    • Preserved embedded markdown tables and callout formatting
    • Response schemas with model names, constraints, and nested detail links
  • v1 documentation extensively validated and corrected against live site

🗑️ Removed

  • Legacy .github/scripts/check_and_update_docs.py workflow helper
  • Old manual v1 markdown (replaced by auto-generated version)

📊 Stats

  • 32 files changed
  • +31,036 insertions, -4,312 deletions
  • 40+ commits since v1.0.0

📚 Documentation

  • v1 docs: docs/v1/affinity_api_docs.md (auto-synced from api-docs.affinity.co)
  • v2 docs: docs/v2/affinity_api_docs.md (auto-synced from developer.affinity.co)

Full Changelog: https://github.com/YOUR_USERNAME/affinity-api-docs/compare/v1.0.0...v2.0.0