Skip to content

OpenAPI: bulkPath() factory emits 201 with no content schema (12 endpoints) #352

@CryptoJones

Description

@CryptoJones

The bulkPath() factory in app/config/openapi.js builds the spec entries for 12 entities that go through _bulk-helpers (worker, billingtype, inventoryitem, inventorytransaction, purchaseordervendor, job, invoice, customerpayment, invoicejob, productentry, purchaseorderheader, purchaseorderline). Every one of those endpoints has a 201 response with description + the Idempotency-Replay header but no content block. Same drift pattern as customer/bulk fixed in #332.

The controllers emit {message, count, [bodyKey]: rows}. SDK code-gen sees the response as untyped.

Fix: extend the factory to declare the envelope. All 12 endpoints inherit the fix.

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions