AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
anch::oas::Scalar Struct Reference

JSON scalar value (enumeration value). More...

#include <spec.hpp>

Collaboration diagram for anch::oas::Scalar:

Public Types

enum class  Kind {
  NUL , STRING , NUMBER , BOOLEAN ,
  OTHER
}

Public Attributes

Kind kind = Kind::NUL
std::string text

Detailed Description

JSON scalar value (enumeration value).

Since
0.1
Author
Vincent Lachenal

Member Enumeration Documentation

◆ Kind

enum class anch::oas::Scalar::Kind
strong

Value kind

Enumerator
NUL 

null

STRING 

Character string

NUMBER 

Number

BOOLEAN 

Boolean

OTHER 

Object or array

Member Data Documentation

◆ kind

Kind anch::oas::Scalar::kind = Kind::NUL

Value kind

◆ text

std::string anch::oas::Scalar::text

Value as text (string content without quotes, number as written in the document, true or false )


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