Table of Contents

Class JsonSchema

Namespace
Ratatoskr.AsyncApi.Model
Assembly
Ratatoskr.dll

Represents a JSON Schema object used for message payload and header schemas.

public class JsonSchema
Inheritance
JsonSchema
Inherited Members

Properties

AdditionalProperties
Description
Enum
Format
Items
MaxLength
Maximum
MinLength
Minimum
OneOf

Combines multiple schemas (used for nullable $ref types in JSON Schema Draft-07).

Pattern
Properties
Ref

JSON Schema $ref to another schema definition.

Required
Type

JSON Schema type. A single type string (e.g. "string") or an array of types (e.g. ["string", "null"]) for nullable values per JSON Schema Draft-07.

XEnumNames

Human-readable names for enum values (OpenAPI extension).

XEnumVarnames

Variable names for enum values used by code generators (OpenAPI extension).

Methods

RefTo(string)

Creates a $ref schema pointing to components/schemas/{name}.