|
nfx-serialization 0.3.0
Cross-platform C++ JSON serialization library with extensible trait capabilities
|
Configuration options for schema generation. More...
#include <nfx/serialization/json/SchemaGenerator.h>

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). | |
Configuration options for schema generation.
Definition at line 64 of file SchemaGenerator.h.
| std::string nfx::serialization::json::SchemaGenerator::Options::description = {} |
Schema description (optional).
Definition at line 71 of file SchemaGenerator.h.
| 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.
| size_t nfx::serialization::json::SchemaGenerator::Options::enumThreshold = 10 |
Maximum unique values to consider as enum.
Definition at line 69 of file SchemaGenerator.h.
| std::string nfx::serialization::json::SchemaGenerator::Options::id = {} |
Schema $id URI (optional).
Definition at line 72 of file SchemaGenerator.h.
| bool nfx::serialization::json::SchemaGenerator::Options::inferConstraints = false |
Generate constraints (minLength, minimum, etc.) - requires multi-sample.
Definition at line 67 of file SchemaGenerator.h.
| bool nfx::serialization::json::SchemaGenerator::Options::inferFormats = true |
Detect string formats (email, date, URI, UUID, etc.).
Definition at line 66 of file SchemaGenerator.h.
| std::string nfx::serialization::json::SchemaGenerator::Options::title = {} |
Schema title (optional).
Definition at line 70 of file SchemaGenerator.h.