openapi/json-schema - @extension
alignment - emit schemas
#6077
Labels
1_0_E2E
breaking-change
A change that might cause specs or code to break
emitter:openapi3
Issues for @typespec/openapi3 emitter
feature
New feature or request
triaged:core
Milestone
This issue tracks updating the
@typespec/openapi
@extension
decorator to emit passed in Types as Open API schemas, similar to how@typespec/json-schema
will emit JSON Schemas for passed in types.For example:
will generate a schema since
{ foo: true }
is a Type.This can be considered a breaking change for anyone passing in a model or tuple expression into
@OpenAPI.extension
. To migrate, users will need to use Value kinds instead.For example,
{ foo: true }
would be updated to#{ foo: true }
.This should not be completed until after #6076 has been included in a release.
The text was updated successfully, but these errors were encountered: