Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
T
Tidal
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • PLN
  • Tidal
  • Repository

Switch branch/tag
  • Tidal
  • armada
  • api
  • tests
  • test_openapi_snapshot.py
Find file
BlameHistoryPermalink
  • PLN (Algolia)'s avatar
    feat(douanier): make it callable — OpenAPI snapshot + zero-dep TS client (#32) · 11c8f9d6
    hexa can now call the audio API with types, not guesswork.
    
    - clients/openapi.json — checked-in OpenAPI 3.1 snapshot (servers pinned to the
      public https://api.nech.pl/audio/v1), covering all 13 routes. A snapshot-drift
      guard test asserts it stays in sync with the live app (add a route → refresh or CI fails).
    - clients/douanier.ts — a typed, ZERO-dependency client (global fetch/FormData/Blob;
      works in Node 18+, Vercel Functions, Edge). One method per engine (emotion,
      features, samples, grade, onsets, waveform, analyze, loudness, spectrum, naming),
      typed results, X-Douanier-Cache surfaced as result._cache, DouanierError on non-2xx.
      Typechecks clean under tsc --strict.
    - clients/README.md — base URL + bearer, a Vercel Function example, the endpoint/
      scope table, curl, and the openapi-generator one-liner for full codegen.
    
    60/60 tests (added the snapshot guard). The API is now self-describing
    (/audio/v1/docs + openapi.json) and has a drop-in client.
    PLN (Algolia) authored Jun 25, 2026
    11c8f9d6
test_openapi_snapshot.py 856 Bytes
EditWeb IDE
×

Replace test_openapi_snapshot.py

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.