osquery-1/osquery/utils/schemer/json/schemer_json_error.h
Alexander Kindyakov b9a78f2388 schemer formatters: json deserializer (#5548)
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
2019-04-01 09:30:26 -07:00

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