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