-
Notifications
You must be signed in to change notification settings - Fork 75
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
Add coverage cases for arrays-item-types in cadl-ranch #2103
Conversation
@qiaozha When running integration-test, get error as follow: |
@@ -944,7 +944,7 @@ function deserializeResponseValue( | |||
type.elementType!, | |||
"p", | |||
runtimeImports, | |||
required, | |||
true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just found typespec can't not define this way playground link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would assume elementTypes are all required, for nullable, since the current nullable logic has problem, I would prefer to have another independent pr to fix it. @MaryGao let me know if you have different thoughts.
}, | ||
{ | ||
type: "datetime", | ||
defaultValue: [new Date("2022-08-26T18:38:00Z")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Datetime type is a Date typescript type in modular.
{ property: "hello", children: undefined }, | ||
{ property: "world", children: undefined } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the children: undefined are added by the current serialization and deserialization logic in modular.
fixes #2215
When generate test SDK for arrays-item-types, it failed and returns an error which is shown as following: