OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:JSONSchemaValidator
(Results
1 - 7
of
7
) sorted by null
/external/chromium_org/components/json_schema/
json_schema_validator_unittest.cc
19
JSONSchemaValidator
validator(schema, types);
36
JSONSchemaValidator
validator(schema, types);
53
TEST(
JSONSchemaValidator
, IsValidSchema) {
55
EXPECT_FALSE(
JSONSchemaValidator
::IsValidSchema("", &error));
56
EXPECT_FALSE(
JSONSchemaValidator
::IsValidSchema("\0", &error));
57
EXPECT_FALSE(
JSONSchemaValidator
::IsValidSchema("string", &error));
58
EXPECT_FALSE(
JSONSchemaValidator
::IsValidSchema("\"string\"", &error));
59
EXPECT_FALSE(
JSONSchemaValidator
::IsValidSchema("[]", &error));
60
EXPECT_FALSE(
JSONSchemaValidator
::IsValidSchema("{}", &error));
61
EXPECT_FALSE(
JSONSchemaValidator
::IsValidSchema
[
all
...]
json_schema_validator_unittest_base.cc
102
JSONSchemaValidator
::FormatErrorMessage(
103
JSONSchemaValidator
::kInvalidType,
114
JSONSchemaValidator
::FormatErrorMessage(
115
JSONSchemaValidator
::kStringMaxLength, "10"));
134
JSONSchemaValidator
::FormatErrorMessage(
135
JSONSchemaValidator
::kStringPattern, "foo+"));
156
JSONSchemaValidator
::kInvalidEnum);
162
JSONSchemaValidator
::kInvalidEnum);
185
JSONSchemaValidator
::kInvalidChoice);
191
JSONSchemaValidator
::kInvalidChoice)
[
all
...]
json_schema_validator.cc
165
if (options &
JSONSchemaValidator
::OPTIONS_IGNORE_UNKNOWN_ATTRIBUTES)
293
JSONSchemaValidator
::Error::Error() {
296
JSONSchemaValidator
::Error::Error(const std::string& message)
300
JSONSchemaValidator
::Error::Error(const std::string& path,
306
const char
JSONSchemaValidator
::kUnknownTypeReference[] =
308
const char
JSONSchemaValidator
::kInvalidChoice[] =
310
const char
JSONSchemaValidator
::kInvalidEnum[] =
312
const char
JSONSchemaValidator
::kObjectPropertyIsRequired[] =
314
const char
JSONSchemaValidator
::kUnexpectedProperty[] =
316
const char
JSONSchemaValidator
::kArrayMinItems[]
[
all
...]
json_schema_validator.h
57
class
JSONSchemaValidator
{
112
// and that DictionaryValue can be used to build a
JSONSchemaValidator
.
135
explicit
JSONSchemaValidator
(base::DictionaryValue* schema);
145
JSONSchemaValidator
(base::DictionaryValue* schema, base::ListValue* types);
147
~
JSONSchemaValidator
();
251
DISALLOW_COPY_AND_ASSIGN(
JSONSchemaValidator
);
/external/chromium_org/extensions/renderer/resources/
json_schema.js
66
* var validator = new
JSONSchemaValidator
();
78
function
JSONSchemaValidator
() {
83
JSONSchemaValidator
.messages = {
112
JSONSchemaValidator
.formatError = function(key, opt_replacements) {
127
JSONSchemaValidator
.getType = function(value) {
153
JSONSchemaValidator
.prototype.addTypes = function(typeOrTypeList) {
172
JSONSchemaValidator
.prototype.getAllTypesForSchema = function(schema) {
191
JSONSchemaValidator
.prototype.getOrAddType = function(typeName) {
200
JSONSchemaValidator
.prototype.isValidSchemaType = function(type, schema) {
222
JSONSchemaValidator
.prototype.checkSchemaOverlap = function(schema1, schema2)
[
all
...]
schema_utils.js
8
var
JSONSchemaValidator
= require('json_schema').
JSONSchemaValidator
;
10
var schemaValidator = new
JSONSchemaValidator
();
60
var argType =
JSONSchemaValidator
.getType(args[i]);
97
var typeNames = args.map(
JSONSchemaValidator
.getType);
/external/chromium_org/components/policy/core/common/
schema.cc
389
// This should have been verified by the
JSONSchemaValidator
.
541
// This should have been verified by the
JSONSchemaValidator
.
[
all
...]
Completed in 2548 milliseconds