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
See playground we have customized error model defined ResponseError.
import "@typespec/rest";
@error
model ResponseError {
code: int32;
meesage: string;
}
op test(): void | ResponseError;
Currently it is always returning this error model in TCGC during getAllModels but please note if this error model is defined in azure core, by default we will not return that model. I think it's better to have an option to opt in if we need this model and by default not returning this like azure error model.
Describe the bug
See playground we have customized error model defined
ResponseError
.Currently it is always returning this error model in TCGC during getAllModels but please note if this error model is defined in azure core, by default we will not return that model. I think it's better to have an option to opt in if we need this model and by default not returning this like azure error model.
Reproduction
NA
Checklist
The text was updated successfully, but these errors were encountered: