Skip to content

update http library documentation for @encode to explicitly call out encoder intent #2256

Description

@mikekistler

The "Next" version of the docs for the HTTP library says:

image

I interpret this to mean that if a TypeSpec definition imports the http library, then any emitter, including the openapi3 emitter, will treat a utcDateTime in a header as rfc7231. For the openapi3 emitter, that means the header will be rendered with "format: http-date-rfc7231", but this is not the behavior I see in the playground.

Playground example

Metadata

Metadata

Labels

docsImprovements or additions to documentation

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions