Open
Description
Clear and concise description of the problem
For unbranded client generation, today, we still use the models from core library when we see the following code which is not correct.
In the unbranded scenario, we should generate models for each Error decorated by @error
.
@error
model ApiError {
/** A machine readable error code */
code: string;
/** A human readable message */
// https://github.com/microsoft/OpenAPI/blob/main/extensions/x-ms-primary-error-message.md
@OpenAPI.extension("x-ms-primary-error-message", true)
message: string;
}
Checklist
- Follow our Code of Conduct
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.