mirror of
https://github.com/Glitchy-Sheep/boosty-downloader.git
synced 2026-10-14 21:33:23 +00:00
[PR #215] [MERGED] feat(scripts): build the API schema from both the account and the anonymous view #213
Labels
No labels
api-drift
bug
ci
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Glitchy-Sheep/boosty-downloader#213
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Glitchy-Sheep/boosty-downloader/pull/215
Author: @Glitchy-Sheep
Created: 9/24/2026
Status: ✅ Merged
Merged: 9/24/2026
Merged by: @Glitchy-Sheep
Base:
main← Head:feat/api-schema-both-views📝 Commits (2)
237812ffeat(scripts): read the API with and without the token for the schema9d72b0cdocs: regenerate the Boosty API schema with both views📊 Changes
3 files changed (+68 additions, -31 deletions)
View changed files
📝
docs/api/README.md(+1 -1)📝
docs/api/boosty-api.yaml(+24 -11)📝
scripts/api_schema/__main__.py(+43 -19)📄 Description
📝 Summary
The weekly report warned about
Post.priceandPost.subscriptionLevel.priceturning into fractional numbers. Boosty changed nothing there: a stranger getspricein USD (1.26), the account gets it in RUB (100). The schema was read with the token, the canary reads without one, so the warning would come every week. The schema now covers both views.🔧 What changes
task api:schemaandtask api:changesread every blog twice: with the token and without it. Without a token they read once, as before.glitchy_sheep. It now holdspriceasinteger | number, and keys only the account sees (views,hasActivePromo) became optional.x-observedcounts the views.hasAIContentandforbiddenChangeHasAIContentjoin the schema. The client does not read them; they arefalseon every post so far.docs/api/README.mdsays why the blogs are read twice.💡 Why
The client is not affected: prices come from
currencyPrices['RUB'], which is the same in both views, andpriceis afloatin the models. Only the warning was false.🧪 Tests
price1.26 / tier 0.13, with the token 100 / 10,currencyPricesthe same.task api:changes -- glitchy_sheep --anonymous, the canary's call, finds nothing new.✅ Checklist
--helpand README if neededdocs/if the download flow or dev process changed## Unreleasedin CHANGELOG.md (or theci/skip-changeloglabel if not user-facing)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.