Table of Contents

Method GenerateAndRegister

Namespace
Ratatoskr.AsyncApi.Schema
Assembly
Ratatoskr.dll

GenerateAndRegister(Type, Dictionary<string, JsonSchema>)

Generates schemas for the given types, adding them to the provided components dictionary. Returns a $ref schema for the given root type.

public JsonSchema GenerateAndRegister(Type type, Dictionary<string, JsonSchema> components)

Parameters

type Type
components Dictionary<string, JsonSchema>

Returns

JsonSchema