Skip to content

Commit

Permalink
chore: temporary fix messageInput schema
Browse files Browse the repository at this point in the history
  • Loading branch information
zAlweNy26 committed Oct 22, 2024
1 parent 042334c commit cb64119
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,12 @@ export const swaggerTags = {

const jsonLiterals = t.Union([t.String(), t.Number(), t.Boolean(), t.Null()])

export const messageInput = t.Intersect([
t.Object({
text: t.String(),
}),
t.Record(t.String(), t.Any()),
], {
// TODO: Wait until https://github.com/elysiajs/elysia/issues/848 is fixed, to use t.Intersect()
export const messageInput = t.Record(t.String(), t.Any(), {
$id: 'messageInput',
title: 'Message Input',
description: 'Message to pass to the cat',
default: { text: 'Hello, world' },
})

export const memoryMessage = t.Object({
Expand Down

0 comments on commit cb64119

Please sign in to comment.