LeviLamina
Loading...
Searching...
No Matches
JSONSchemaBody.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/ext/json_schema/JSONSchemaValidation.h"
7#include "mc/deps/cereal/schema/dynamic/DynamicValue.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace cereal { struct SchemaDescription; }
12namespace cereal::ext::internal { struct JSONSchemaDef; }
13namespace cereal::ext::internal { struct OutRefsMap; }
14namespace cereal::internal { struct ConstraintDescription; }
15// clang-format on
16
17namespace cereal::ext::internal {
18
19struct JSONSchemaBody : public ::cereal::ext::internal::JSONSchemaValidation {
20public:
21 // JSONSchemaBody inner types define
22 using MetaProperties = ::std::map<::std::string, ::cereal::DynamicValue>;
23
24 using Properties = ::std::map<::std::string, ::cereal::ext::internal::JSONSchemaDef>;
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mType;
30 ::ll::TypedStorage<1, 2, ::std::optional<bool>> mDeprecated;
31 ::ll::TypedStorage<8, 80, ::std::optional<::cereal::DynamicValue>> mDefaultValue;
32 ::ll::TypedStorage<8, 80, ::std::optional<::cereal::DynamicValue>> mConstValue;
33 ::ll::TypedStorage<8, 32, ::std::optional<::std::vector<::std::string>>> mRequired;
34 ::ll::TypedStorage<8, 32, ::std::optional<::std::vector<::std::string>>> mEnum;
35 ::ll::TypedStorage<8, 24, ::std::optional<::std::map<::std::string, ::std::string>>> mEnumDescription;
36 ::ll::TypedStorage<8, 24, ::std::optional<::std::map<::std::string, ::cereal::ext::internal::JSONSchemaDef>>>
37 mProperties;
38 ::ll::TypedStorage<8, 24, ::std::optional<::std::map<::std::string, ::cereal::ext::internal::JSONSchemaDef>>>
39 mPatternProperties;
40 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::cereal::ext::internal::JSONSchemaDef>> mAdditionalProperties;
41 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::cereal::ext::internal::JSONSchemaDef>> mPropertyNames;
42 ::ll::TypedStorage<8, 16, ::std::shared_ptr<::cereal::ext::internal::JSONSchemaDef>> mItems;
43 ::ll::TypedStorage<8, 32, ::std::optional<::std::vector<::cereal::ext::internal::JSONSchemaDef>>> mOneOf;
44 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mRef;
45 ::ll::TypedStorage<8, 24, ::std::optional<::std::map<::std::string, ::cereal::DynamicValue>>> mMetaProperties;
46 ::ll::TypedStorage<
47 8,
48 24,
49 ::std::optional<::std::map<::std::string, ::std::map<::std::string, ::cereal::DynamicValue>>>>
50 mEnumProperties;
51 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mUnderlyingType;
52 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mControlValueType;
53 ::ll::TypedStorage<8, 72, ::std::optional<::std::unordered_set<::std::string>>> mSerializationTraits;
54 ::ll::TypedStorage<1, 2, ::std::optional<uchar>> mOrdinalIndex;
55 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mNonPublicProperty;
56 ::ll::TypedStorage<8, 72, ::std::optional<::std::unordered_map<::std::string, ::std::vector<::std::string>>>>
57 mNonPublicEnumValues;
58 // NOLINTEND
59
60public:
61 // prevent constructor by default
62 JSONSchemaBody();
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI JSONSchemaBody(::cereal::ext::internal::JSONSchemaBody&&);
68
69 MCAPI JSONSchemaBody(::cereal::ext::internal::JSONSchemaBody const&);
70
71 MCAPI void fill(::cereal::internal::ConstraintDescription const& constraint);
72
73 MCAPI void fillBody(::cereal::SchemaDescription const& schemaInfo, ::cereal::ext::internal::OutRefsMap& outRefs);
74
75 MCAPI void fillBodyIfEnum(::cereal::SchemaDescription const& schemaInfo);
76
77 MCAPI ::cereal::ext::internal::JSONSchemaBody& operator=(::cereal::ext::internal::JSONSchemaBody&&);
78
79 MCAPI ::cereal::ext::internal::JSONSchemaBody& operator=(::cereal::ext::internal::JSONSchemaBody const&);
80
81 MCAPI ~JSONSchemaBody();
82 // NOLINTEND
83
84public:
85 // static functions
86 // NOLINTBEGIN
87 MCAPI static void overwriteIfAny(
88 ::std::shared_ptr<::cereal::ext::internal::JSONSchemaDef>& that,
89 ::std::shared_ptr<::cereal::internal::ConstraintDescription> const& other
90 );
91 // NOLINTEND
92
93public:
94 // constructor thunks
95 // NOLINTBEGIN
96 MCAPI void* $ctor(::cereal::ext::internal::JSONSchemaBody&&);
97
98 MCAPI void* $ctor(::cereal::ext::internal::JSONSchemaBody const&);
99 // NOLINTEND
100
101public:
102 // destructor thunk
103 // NOLINTBEGIN
104 MCAPI void $dtor();
105 // NOLINTEND
106};
107
108} // namespace cereal::ext::internal
Definition SchemaDescription.h:21
Definition JSONSchemaBody.h:19
Definition JSONSchemaDef.h:19
Definition JSONSchemaValidation.h:7
Definition OutRefsMap.h:7
Definition ConstraintDescription.h:7