You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case, we have pagedResult, but without pagedItems to indicate the item types. Should we error out? if so, should compiler do this or should tcgc or azure linter do this?
@error
model Error {
code: int32;
message: string;
}
@pagedResult
model Bar {
lists: string[];
}
// this will be ok
@route("/test")
op test(): Error | Bar;
// this will not be ok as compiler would report missing-paging-items
@route("/test1")
@list op test1(): Error | Bar;
In the case, we have pagedResult, but without pagedItems to indicate the item types. Should we error out? if so, should compiler do this or should tcgc or azure linter do this?
See this playground link
The text was updated successfully, but these errors were encountered: