-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@oaSchemaProp example fails with numerical strings #1417
Comments
Ok I can fix this one |
There is also some other linked issues : /** property-schemaprop date
* @oaSchemaProp example
* "1990-12-31"
* */
"property-with-date": Date; When using /** property-schemaprop array of integer
* @oaSchemaProp example
* [1990,12,31]
* */
"property-with-array": Integer[]; When using /** property-schemaprop union of string
* @oaSchemaProp example
* "WAITING"
* */
code?: "VALID" | "NOT_VALID" | "WAITING" | "APPROVED"; |
Proposal : |
…ime, Object, Array, Union or Intersection (#1419)
Examples seem to work fine now, but the default oaSchemaProp seems busted for enum strings. For example
Throws an error |
Hello @amoghsharma1996, It's seems to be a bug. |
Describe the bug
When using
@oaSchemaProp example
, providing a numerical string like"123.3"
for aString
type fails:As
"123.3"
is a String, this should work.The text was updated successfully, but these errors were encountered: