proxygen
|
#include <folly/experimental/JSONSchema.h>
#include <boost/algorithm/string/replace.hpp>
#include <boost/regex.hpp>
#include <folly/CPortability.h>
#include <folly/Conv.h>
#include <folly/Memory.h>
#include <folly/Optional.h>
#include <folly/Singleton.h>
#include <folly/String.h>
#include <folly/json.h>
Go to the source code of this file.
Namespaces | |
folly | |
—— Concurrent Priority Queue Implementation —— | |
folly::jsonschema | |
Functions | |
std::unique_ptr< Validator > | folly::jsonschema::makeValidator (const dynamic &schema) |
std::shared_ptr< Validator > | folly::jsonschema::makeSchemaValidator () |
std::unique_ptr<IValidator> additionalItemsValidator_ |
Definition at line 342 of file JSONSchema.cpp.
std::unique_ptr<IValidator> additionalPropertyValidator_ |
Definition at line 455 of file JSONSchema.cpp.
bool allowAdditionalItems_ |
Definition at line 343 of file JSONSchema.cpp.
bool allowAdditionalProperties_ |
Definition at line 456 of file JSONSchema.cpp.
|
private |
Definition at line 555 of file JSONSchema.cpp.
bool exclusive_ |
Definition at line 207 of file JSONSchema.cpp.
std::unique_ptr<IValidator> itemsValidator_ |
Definition at line 340 of file JSONSchema.cpp.
std::vector<std::unique_ptr<IValidator> > itemsValidators_ |
Definition at line 341 of file JSONSchema.cpp.
int64_t length_ |
Definition at line 233 of file JSONSchema.cpp.
Referenced by folly::IOBuf::advance(), folly::IOBuf::append(), folly::IOBuf::clear(), folly::IOBuf::coalesceWithHeadroomTailroom(), folly::IOBuf::gather(), proxygen::HTTPSession::WriteSegment::getLength(), folly::IOBuf::length(), folly::IOBuf::prepend(), folly::IOBuf::retreat(), folly::IOBuf::tail(), proxygen::TEST_F(), folly::IOBuf::trimEnd(), folly::IOBuf::trimStart(), folly::IOBuf::writableTail(), and proxygen::HeaderTableTests::xcheck().
std::vector<std::pair<boost::regex, std::unique_ptr<IValidator> > > patternPropertyValidators_ |
Definition at line 454 of file JSONSchema.cpp.
|
private |
Definition at line 370 of file JSONSchema.cpp.
std::vector<std::pair<std::string, std::vector<std::string> > > propertyDep_ |
Definition at line 509 of file JSONSchema.cpp.
std::unordered_map<std::string, std::unique_ptr<IValidator> > propertyValidators_ |
Definition at line 452 of file JSONSchema.cpp.
std::unordered_map<std::string, IValidator*> refs |
Definition at line 104 of file JSONSchema.cpp.
Referenced by folly::detail::NodeRecycler< NodeType, NodeAlloc, typename std::enable_if< !NodeType::template DestroyIsNoOp< NodeAlloc >::value >::type >::add(), GenericFilterTest< Owned >::addFilterToChain(), folly::fbstring_core< char >::capacity(), folly::fbstring_core< char >::isShared(), folly::fbstring_core< Char >::mutableDataLarge(), folly::detail::NodeRecycler< NodeType, NodeAlloc, typename std::enable_if< !NodeType::template DestroyIsNoOp< NodeAlloc >::value >::type >::releaseRef(), folly::fbstring_core< Char >::reserveLarge(), folly::fbstring_core< char >::shrink(), and folly::detail::NodeRecycler< NodeType, NodeAlloc, typename std::enable_if< !NodeType::template DestroyIsNoOp< NodeAlloc >::value >::type >::~NodeRecycler().
boost::regex regex_ |
Definition at line 254 of file JSONSchema.cpp.
Referenced by testing::internal::MatchesRegexMatcher::DescribeNegationTo(), testing::internal::MatchesRegexMatcher::DescribeTo(), and testing::internal::MatchesRegexMatcher::MatchAndExplain().
const dynamic& schema |
Definition at line 103 of file JSONSchema.cpp.
Referenced by TEST().
dynamic schema_ |
Definition at line 155 of file JSONSchema.cpp.
std::vector<std::pair<std::string, std::unique_ptr<IValidator> > > schemaDep_ |
Definition at line 510 of file JSONSchema.cpp.
|
private |
Definition at line 92 of file JSONSchema.cpp.
Referenced by testing::internal::MaxBipartiteMatchState::Compute(), fizz::server::test::TEST(), and TEST().
Type type_ |
Definition at line 208 of file JSONSchema.cpp.
Referenced by testing::internal::CheckedDowncastToActualType(), folly::TestLogHandlerFactory::createHandler(), folly::dynamic::destroy(), testing::TestPartResult::failed(), testing::TestPartResult::fatally_failed(), testing::internal::GetThreadCount(), folly::AsyncSocketException::getType(), folly::TestLogHandlerFactory::getType(), folly::Req::getType(), proxygen::ZlibStreamCompressor::init(), MoveToFbStringTest::makeBuf(), testing::TestPartResult::nonfatally_failed(), folly::dynamic::operator<(), folly::dynamic::operator=(), folly::dynamic::operator==(), testing::TestPartResult::passed(), folly::SingletonVault::registrationComplete(), folly::Req::setType(), folly::SingletonVault::setType(), MoveToFbStringTest::SetUp(), testing::internal::ShouldRunTestCase(), testing::TestPartResult::type(), folly::io::Codec::type(), and folly::detail::SingletonHolderBase::type().
|
private |
Definition at line 556 of file JSONSchema.cpp.
bool unique_ |
Definition at line 278 of file JSONSchema.cpp.
std::unique_ptr<IValidator> validator_ |
Definition at line 649 of file JSONSchema.cpp.
|
private |
Definition at line 133 of file JSONSchema.cpp.