Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/alosaur/openapi/builder/openapi-models.ts>isSchemaObject

Alosaur - Deno web framework with many decorators
Go to Latest
function isSchemaObject
import { isSchemaObject } from "https://deno.land/x/alosaur@v0.24.1/openapi/builder/openapi-models.ts";

A type guard to check if the given object is a SchemaObject. Useful to distinguish from ReferenceObject values that can be used in most places where SchemaObject is allowed.

See https://www.typescriptlang.org/docs/handbook/advanced-types.html#type-guards-and-differentiating-types

Parameters

The value to check.