Skip to content

Commit

Permalink
Remove circular reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyaschorge committed Oct 23, 2024
1 parent 0d99db5 commit 218ffc4
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/v2/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,17 @@ components:
cast_id:
$ref: "#/components/schemas/CastId"
metadata:
$ref: "#/components/schemas/EmbedCastMetadata"
EmbedCastMetadata:
$ref: "#/components/schemas/Cast"
$ref: "#/components/schemas/EmbedCastMetadataRef"
EmbedCastMetadataRef:
description: Reference to avoid circular reference in EmbedCastMetadata
anyOf:
- $ref: "#/components/schemas/Cast"
- type: object
properties:
embeds:
type: array
items:
type: object # Breaks the recursive reference
Frame:
type: object
required:
Expand Down Expand Up @@ -1170,7 +1178,6 @@ components:
type: boolean
viewer_context:
$ref: "#/components/schemas/UserViewerContext"

Embed:
oneOf:
- $ref: "#/components/schemas/EmbedUrl"
Expand Down

0 comments on commit 218ffc4

Please sign in to comment.