-
I'm trying out the new For example, when I try to provide an example for a date field like this: model Foo {
@example("2020-12-12")
bar: plainDate;
} the TypeSpec compiler will error with this message:
Other date/time related examples are also failing, i.e. What is the correct way of providing example date/time values? |
Beta Was this translation helpful? Give feedback.
Answered by
arabold
Jul 18, 2024
Replies: 1 comment
-
Oh, I think I found it right after posting 🤦 This seems to do the trick:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
arabold
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Oh, I think I found it right after posting 🤦
This seems to do the trick: