9#include <userver/formats/json/parser/typed_parser.hpp>
11USERVER_NAMESPACE_BEGIN
13namespace formats::json::
parser {
15template <
typename T =
int>
23 std::string GetPathItem()
const override {
return {}; }
25 std::string Expected()
const override {
return "integer"; }
27 void Int64(std::int64_t i)
override;
29 void Uint64(std::uint64_t i)
override;
31 void Double(
double value)
override;
39 std::string GetPathItem()
const override {
return {}; }
41 std::string Expected()
const override {
return "integer"; }
43 void Int64(std::int64_t i)
override;
45 void Uint64(std::uint64_t i)
override;
47 void Double(
double value)
override;
50using IntParser = IntegralParser<std::int32_t>;
51using Int32Parser = IntegralParser<std::int32_t>;
52using Int64Parser = IntegralParser<std::int64_t>;