Decorators
TypeSpec.OpenAPI
Section titled “TypeSpec.OpenAPI”@oneOf
Section titled “@oneOf”Specify that oneOf
should be used instead of anyOf
for that union.
@TypeSpec.OpenAPI.oneOf
Target
Section titled “Target”Union | ModelProperty
Parameters
Section titled “Parameters”None
@useRef
Section titled “@useRef”Specify an external reference that should be used inside of emitting this type.
@TypeSpec.OpenAPI.useRef(ref: valueof string)
Target
Section titled “Target”Model | ModelProperty
Parameters
Section titled “Parameters”Name | Type | Description |
---|---|---|
ref | valueof string | External reference(e.g. ”../../common.json#/components/schemas/Foo”) |