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