-
Notifications
You must be signed in to change notification settings - Fork 1
Regenerate backend swagger.ts
backend-swagger.ts
is a generated client file used by the public and partner portals. Any time a change is made to a backend data type object (DTO), backend-swagger.ts
will need to be regenerated to reflect the changes.
To regenerate backend-swagger.ts
, start the backend using yarn start
from backend/core
. In another terminal, run yarn generate:client
from backend/core
.
When regenerating, you may see seemingly unrelated changes. This can happen if there were prior backend changes upstream or in our repo and a regeneration wasn't run. The generator has also been known to be buggy sometimes. If there is unusual or unexpected behavior, copy the pieces of the generated code, revert the file, and manually add the generated content. It's not fantastic, but it works.