blob: b8047127ca52d221e14dd0e74a56b3ab30f32cd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2021 Daniel Parker
// Distributed under the Boost license, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// See https://github.com/danielaparker/jsoncons for latest version
#ifndef JSONCONS_JSONSCHEMA_SCHEMA_VERSION_HPP
#define JSONCONS_JSONSCHEMA_SCHEMA_VERSION_HPP
#include <jsoncons/json.hpp>
namespace jsoncons {
namespace jsonschema {
class schema_version
{
public:
static bool contains(const string_view& url)
{
if (url.find("json-schema.org/draft-07/schema#") != string_view::npos)
{
return true;
}
else
{
return false;
}
}
};
} // namespace jsonschema
} // namespace jsoncons
#endif // JSONCONS_JSONSCHEMA_JSONSCHEMA_VERSION_HPP
|