Skip to content

JsonMedia

@tsed/schema

Usage

typescript
import { JsonMedia } from "@tsed/schema";

See /packages/specs/schema/src/types/domain/JsonMedia.ts.

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;

Released under the MIT License.