import "@typespec/http";
using TypeSpec.Http;
@error
model Error {
message: string;
}
@route("/1") op read1(): string | null;
@route("/2") op read3(): string | null | Error;
Playground link
Resulting is a 204 no content before PR #355 which remove ignore null responses.
Feel like it should be making the string body nullable