nfx-serialization 0.3.0
Cross-platform C++ JSON serialization library with extensible trait capabilities
Loading...
Searching...
No Matches
nfx::serialization::json::SchemaGenerator::Options Struct Reference

Configuration options for schema generation. More...

#include <nfx/serialization/json/SchemaGenerator.h>

Collaboration diagram for nfx::serialization::json::SchemaGenerator::Options:

Public Attributes

bool inferFormats = true
 Detect string formats (email, date, URI, UUID, etc.).
bool inferConstraints = false
 Generate constraints (minLength, minimum, etc.) - requires multi-sample.
bool detectEnums = false
 Detect limited value sets as enums - requires multi-sample.
size_t enumThreshold = 10
 Maximum unique values to consider as enum.
std::string title = {}
 Schema title (optional).
std::string description = {}
 Schema description (optional).
std::string id = {}
 Schema $id URI (optional).

Detailed Description

Configuration options for schema generation.

Definition at line 64 of file SchemaGenerator.h.

Member Data Documentation

◆ description

std::string nfx::serialization::json::SchemaGenerator::Options::description = {}

Schema description (optional).

Definition at line 71 of file SchemaGenerator.h.

◆ detectEnums

bool nfx::serialization::json::SchemaGenerator::Options::detectEnums = false

Detect limited value sets as enums - requires multi-sample.

Definition at line 68 of file SchemaGenerator.h.

◆ enumThreshold

size_t nfx::serialization::json::SchemaGenerator::Options::enumThreshold = 10

Maximum unique values to consider as enum.

Definition at line 69 of file SchemaGenerator.h.

◆ id

std::string nfx::serialization::json::SchemaGenerator::Options::id = {}

Schema $id URI (optional).

Definition at line 72 of file SchemaGenerator.h.

◆ inferConstraints

bool nfx::serialization::json::SchemaGenerator::Options::inferConstraints = false

Generate constraints (minLength, minimum, etc.) - requires multi-sample.

Definition at line 67 of file SchemaGenerator.h.

◆ inferFormats

bool nfx::serialization::json::SchemaGenerator::Options::inferFormats = true

Detect string formats (email, date, URI, UUID, etc.).

Definition at line 66 of file SchemaGenerator.h.

◆ title

std::string nfx::serialization::json::SchemaGenerator::Options::title = {}

Schema title (optional).

Definition at line 70 of file SchemaGenerator.h.


The documentation for this struct was generated from the following file: