← 输入框|github.com|刷新
Skip to content

docs(contributing): describe the generated request classes - #496

Merged
dargmuesli merged 1 commit into
betafrom
docs/contributing-codegen
Nov 5, 2026
Merged

dargmuesli merged 1 commit into
betafrom
docs/contributing-codegen

Conversation

@dargmuesli

@dargmuesli dargmuesli commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #495 for beta. The code overview that #495 moved into CONTRIBUTING.md describes main, where requests are still written by hand. On beta they are generated, so this PR updates it.

  • Code overview:
    • It now says the hand-written code is in src/main/java and the generated request classes are in src/generated/java, under the same packages, with Maven adding the second source root.
    • The requests/ entry explains that the data requests and their SpotifyApi methods are generated from spec/openapi.yaml via codegen/requests.yaml, and that the methods sit between // <generated-requests> markers. It also names the two requests that stay hand-written (GetUsersTopArtistsAndTracksRequest, AddCustomPlaylistCoverImageRequest).
  • Development setup: adds Python 3 with PyYAML, needed to run the generator, and the ./codegen/generate.py and --check commands.

The README's Code Overview, which beta had already updated for codegen, was dropped while merging main into beta (b285ee8) in favour of main's version. Its codegen sentence now lives here. ci/check-docs.py passes.

The code overview moved from the README on main, where requests are still
written by hand. On beta they are generated, so the overview now says where
the generated classes and SpotifyApi methods live and which two requests
stay hand-written, and the development setup lists the Python and PyYAML
the generator needs, with its commands.
@dargmuesli
dargmuesli force-pushed the docs/contributing-codegen branch from a467862 to b3ca6a3 Compare November 5, 2026 13:42
@dargmuesli
dargmuesli enabled auto-merge November 5, 2026 13:43
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 37.10%. Comparing base (b285ee8) to head (b3ca6a3).
⚠️ Report is 2 commits behind head on beta.

Additional details and impacted files
@@            Coverage Diff            @@
##               beta     #496   +/-   ##
=========================================
  Coverage     37.10%   37.10%           
  Complexity      509      509           
=========================================
  Files           106      106           
  Lines          4282     4282           
  Branches        196      196           
=========================================
  Hits           1589     1589           
  Misses         2603     2603           
  Partials         90       90           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@dargmuesli
dargmuesli merged commit 7c24de7 into beta Nov 5, 2026
11 checks passed
@dargmuesli
dargmuesli deleted the docs/contributing-codegen branch November 5, 2026 13:44
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