-
Notifications
You must be signed in to change notification settings - Fork 339
Labels
design:neededA design request has been raised that needs a proposalA design request has been raised that needs a proposallib:httptriaged:core
Milestone
Description
Release 1.9.1 of @typespec/http updated so that the content-type header present in
I don't know if it is valid or not to do that with HEAD but the resulting openapi seems wrong as it now include the content type as header and the response has the wrong one
import "@typespec/http";
using Http;
@head
op listHead(): OkResponse | Error;
@error
model Error {
@header
contentType: "application/problem+json";
type: string;
} headers:
content-type:
required: true
schema:
type: string
enum:
- application/problem+json
content:
application/json:
schema:
$ref: '#/components/schemas/Error'Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
design:neededA design request has been raised that needs a proposalA design request has been raised that needs a proposallib:httptriaged:core