JsonMedia
@tsed/schema
Usage
typescript
import { JsonMedia } from "@tsed/schema";
Overview
ts
class JsonMedia extends JsonMap<OS3MediaType<JsonSchema>> {
$kind: string;
groups: string[];
groupsName: string;
allowedGroups?: Set<string>;
schema(schema: JsonSchema): this;
examples(examples: any): this;
}
$kind
ts
$kind: string;
groups
ts
groups: string[];
groupsName
ts
groupsName: string;
allowedGroups
ts
allowedGroups?: Set<string>;
schema
ts
schema(schema: JsonSchema): this;
examples
ts
examples(examples: any): this;