174#include "detail/SchemaGenerator.inl"
JSON Document type with low-level and high-level APIs.
Low-level JSON value storage type.
SchemaGenerator(const Document &document, const Options &options)
Generate JSON Schema from a single document.
SchemaGenerator(const SchemaGenerator &)=default
Copy constructor.
SchemaGenerator(const std::vector< Document > &documents, const Options &options)
Generate JSON Schema from multiple sample documents.
SchemaGenerator(const Document &document)
Generate JSON Schema from a single document.
SchemaGenerator(SchemaGenerator &&) noexcept=default
Move constructor.
const Document & schema() const noexcept
Get the generated schema.
SchemaGenerator(const std::vector< Document > &documents)
Generate JSON Schema from multiple sample documents.
Configuration options for schema generation.
bool detectEnums
Detect limited value sets as enums - requires multi-sample.
std::string title
Schema title (optional).
bool inferFormats
Detect string formats (email, date, URI, UUID, etc.).
size_t enumThreshold
Maximum unique values to consider as enum.
bool inferConstraints
Generate constraints (minLength, minimum, etc.) - requires multi-sample.
std::string description
Schema description (optional).