fix(contracts): widen asString return type to string #243
Annotations
1 error and 2 warnings
|
commitlint
You have commit messages with errors
⧗ input: fix(contracts): widen asString return type to string
asString returned the ZodEnum unchanged, so z.infer leaked the literal
union. Consumers bind their own zod for the @anatine/zod-openapi and
@ts-rest/core peers; under zod 4 the union breaks assignments from plain
string data (e.g. certification, gender, known_for_department). Annotate
the return as z.ZodString so the inferred output stays string regardless
of the consumer's zod. Runtime still validates enum membership and the
OpenAPI schema stays type: string.
✖ scope must be one of [api, calendar, certifications, checkin, comment, episode, favorite, filter, footer, guards, i18n, landing, layout, link, list, media, movie, oauth, person, plex, recommendation, scrobble, search, show, sync, team, user, watchnow, yir, younify] [scope-enum]
✖ found 1 problems, 0 warnings
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
|
|
commitlint
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
commitlint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|