mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 10:23:54 +00:00
b9a78f2388
Summary: Pull Request resolved: https://github.com/facebook/osquery/pull/5548 This is a JSON deserializing formatter for schemer. It parse C++ object from JSON object according to defined in C++ class schema. The implementation based on rapidjson library. Two methods with the same name: `osquery::schemer::fromJson` Reviewed By: SAlexandru Differential Revision: D14664162 fbshipit-source-id: ba73490dc19127a04a43b7ba1807d1f1a0bf4f43
23 lines
431 B
C++
23 lines
431 B
C++
/**
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed in accordance with the terms specified in
|
|
* the LICENSE file found in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
namespace osquery {
|
|
namespace schemer {
|
|
|
|
enum class JsonError {
|
|
Syntax = 1,
|
|
TypeMismatch = 2,
|
|
MissedKey = 3,
|
|
IncorrectFormat = 4,
|
|
};
|
|
|
|
} // namespace schemer
|
|
} // namespace osquery
|