NullableType Class Reference

#include <Pt/Mcp/Type.h>

Nullable wrapper that allows null as an alternative value. More...

Inherits Type.

Public Member Functions

void toSchema (std::ostream &os, const std::string &description="") const override
 Writes the JSON Schema representation to the stream.
 

Detailed Description

Outputs a schema with type as an array, e.g. {"type":["string","null"]}.