Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Model

import type { Model } from "https://aws-api.deno.dev/v0.3/services/apigatewayv2.ts?docs=full";

Represents a data model for an API. Supported only for WebSocket APIs. See Create Models and Mapping Templates for Request and Response Mappings.

interface Model {
ContentType?: string | null;
Description?: string | null;
ModelId?: string | null;
Name: string;
Schema?: string | null;
}

§Properties

§
ContentType?: string | null
[src]

The content-type for the model, for example, "application/json".

§
Description?: string | null
[src]

The description of the model.

§
ModelId?: string | null
[src]

The model identifier.

§
Name: string
[src]

The name of the model. Must be alphanumeric.

§
Schema?: string | null
[src]

The schema for the model. For application/json models, this should be JSON schema draft 4 model.