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