nfx-serialization 0.3.0
Cross-platform C++ JSON serialization library with extensible trait capabilities
Loading...
Searching...
No Matches
Types.h File Reference

JSON Schema type constants. More...

#include <string_view>
Include dependency graph for Types.h:

Go to the source code of this file.

Variables

constexpr std::string_view nfx::serialization::json::types::STRING { "string" }
 JSON string type.
constexpr std::string_view nfx::serialization::json::types::NUMBER { "number" }
 JSON number type (includes integers).
constexpr std::string_view nfx::serialization::json::types::INTEGER { "integer" }
 JSON integer type (subset of number).
constexpr std::string_view nfx::serialization::json::types::OBJECT { "object" }
 JSON object type.
constexpr std::string_view nfx::serialization::json::types::ARRAY { "array" }
 JSON array type.
constexpr std::string_view nfx::serialization::json::types::BOOLEAN { "boolean" }
 JSON boolean type.
constexpr std::string_view nfx::serialization::json::types::NULL_TYPE { "null" }
 JSON null type.

Detailed Description

JSON Schema type constants.

Defines string constants for JSON Schema type names.

See also
https://json-schema.org/draft/2020-12/json-schema-core#section-4.2.1

Definition in file Types.h.

Variable Documentation

◆ ARRAY

std::string_view nfx::serialization::json::types::ARRAY { "array" }
inlineconstexpr

JSON array type.

Definition at line 56 of file Types.h.

◆ BOOLEAN

std::string_view nfx::serialization::json::types::BOOLEAN { "boolean" }
inlineconstexpr

JSON boolean type.

Definition at line 59 of file Types.h.

◆ INTEGER

std::string_view nfx::serialization::json::types::INTEGER { "integer" }
inlineconstexpr

JSON integer type (subset of number).

Definition at line 50 of file Types.h.

◆ NULL_TYPE

std::string_view nfx::serialization::json::types::NULL_TYPE { "null" }
inlineconstexpr

JSON null type.

Definition at line 62 of file Types.h.

◆ NUMBER

std::string_view nfx::serialization::json::types::NUMBER { "number" }
inlineconstexpr

JSON number type (includes integers).

Definition at line 47 of file Types.h.

◆ OBJECT

std::string_view nfx::serialization::json::types::OBJECT { "object" }
inlineconstexpr

JSON object type.

Definition at line 53 of file Types.h.

◆ STRING

std::string_view nfx::serialization::json::types::STRING { "string" }
inlineconstexpr

JSON string type.

Definition at line 44 of file Types.h.