Skip to content

Commit 1bdf815

Browse files
committed
fix: remove comment
1 parent 0028326 commit 1bdf815

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

projects/api/src/contracts/users/schema/response/userCommentResponseSchema.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ import { showResponseSchema } from '../../../_internal/response/showResponseSche
55
import { z } from '../../../_internal/z.ts';
66
import { seasonResponseSchema } from '../../../shows/schema/response/seasonResponseSchema.ts';
77

8-
/**
9-
* A user comment attached to one of several entity shapes (movie, show, season,
10-
* episode). Modeled as one flat object with every shape-specific field nullish
11-
* rather than a `z.discriminatedUnion` — OpenAPI codegen turns a union `oneOf`
12-
* into a model with all fields required, so consumers get a wrong schema. With
13-
* nullish fields the generated model is correct; discriminate by `type` (or by
14-
* which of `movie`/`show`/`season`/`episode` is present).
15-
*/
168
export const userCommentResponseSchema = z.object({
179
type: z.enum(['movie', 'show', 'season', 'episode']),
1810
comment: commentResponseSchema,

0 commit comments

Comments
 (0)