Required metadata fields in middleware #881
Unanswered
rhinodavid
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Because you define You must use export const contract = {
echo: oc
.$meta({ cache: true })
.input(z.object({ msg: z.string() }))
}; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the docs the metadata example uses a type with an optional key:
I'm trying to use this with a contract implementation (I don't know if that detail matters) but when I make the key required I get a type error. Not sure if making this required just isn't possible or if I'm doing something wrong.
Beta Was this translation helpful? Give feedback.
All reactions