[T] ContentMediaTypeDecorator
type ContentMediaTypeDecorator = (context, target, value) => DecoratorValidatorCallbacks | void;Specify the content type of content stored in a string.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
context | DecoratorContext | - |
target | Scalar | ModelProperty | - |
value | string | The media type of the string contents |
Returns
Section titled “Returns”DecoratorValidatorCallbacks | void