• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

vocdoni / saas-backend / 28034326832
63%

Build:
DEFAULT BRANCH: main
Ran 23 Jun 2026 02:49PM UTC
Jobs 1
Files 112
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Jun 2026 02:42PM UTC coverage: 62.016% (+0.03%) from 61.99%
28034326832

push

github

web-flow
fix(api): stop swagger promising response fields the API never sends (#542)

* fix(api): stop swagger promising response fields the API never sends

Several response schemas advertised fields that no response actually
carries, because they were either write-only creation inputs living on a
struct reused as both request and response, or response fields the
FromDB converter silently never populated. Clients trusted these and got
a zero value (or nothing).

- OrganizationInfo.provisionAccount was a creation-only directive on the
  shared request/response struct, so every org response documented it
  although OrganizationFromDB never sets it. Move it to a dedicated
  CreateOrganizationRequest body; OrganizationInfo (the response model)
  no longer carries it.
- OrganizationCensus.weighted was documented and stored (db.Census.Weighted,
  set at publish) but OrganizationCensusFromDB dropped it, so GET/list
  census always returned weighted=false. Populate it.
- OrganizationInfo.meta was documented but OrganizationFromDB dropped it,
  so org responses always returned meta=null. Populate it from db.Organization.
- SubscriptionDetails.maxCensusSize had no backing field on
  db.OrganizationSubscription and was always 0. Remove it.
- SubscriptionPlan.stripePriceId and startingPrice had no backing field on
  db.Plan and were never set (dead). Remove them.

The shared-model integrator field is intentionally left untouched here to
avoid conflicting with in-flight work on that flag.

Regenerated docs/swagger.yaml.

10 of 10 new or added lines in 2 files covered. (100.0%)

24 existing lines in 1 file now uncovered.

9553 of 15404 relevant lines covered (62.02%)

44.36 hits per line

Coverage Regressions

Lines Coverage ∆ File
24
55.78
0.38% api/organization_users.go
Jobs
ID Job ID Ran Files Coverage
1 28034326832.1 23 Jun 2026 02:49PM UTC 112
62.02
GitHub Action Run
Source Files on build 28034326832
  • Tree
  • List 112
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b13a8fef on github
  • Prev Build on main (#28033592537)
  • Next Build on main (#28035462302)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc