great_expectations.profile.json_schema_profiler
¶
Module Contents¶
Classes¶
Generic enumeration. |
|
|
This profiler creates Expectation Suites from JSONSchema artifacts. |
-
great_expectations.profile.json_schema_profiler.
logger
¶
-
class
great_expectations.profile.json_schema_profiler.
JsonSchemaTypes
¶ Bases:
enum.Enum
Generic enumeration.
Derive from this class to define new enumerations.
-
STRING
= string¶
-
INTEGER
= integer¶
-
NUMBER
= number¶
-
ARRAY
= array¶
-
NULL
= null¶
-
BOOLEAN
= boolean¶
-
OBJECT
= object¶
-
ENUM
= enum¶
-
-
class
great_expectations.profile.json_schema_profiler.
JsonSchemaProfiler
(configuration: dict = None)¶ Bases:
great_expectations.profile.base.Profiler
This profiler creates Expectation Suites from JSONSchema artifacts.
JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. https://json-schema.org
Basic suites can be created from these specifications.
Note that there is not yet a notion of nested data types in Great Expectations so suites generated use column map expectations.
Also note that this implementation does not traverse nested schemas and requires a top level object of type object.
-
PROFILER_TYPE_LIST_BY_JSON_SCHEMA_TYPE
¶
-
validate
(self, schema: dict)¶
-
_profile
(self, schema: Dict, suite_name: str = None)¶
-
_get_object_types
(self, details: dict)¶
-
_get_enum_list
(self, details: dict)¶
-
_create_existence_expectation
(self, key: str, details: dict)¶
-
_create_type_expectation
(self, key: str, details: dict)¶
-
_create_boolean_expectation
(self, key: str, details: dict)¶ https://json-schema.org/understanding-json-schema/reference/boolean.html
-
_create_range_expectation
(self, key: str, details: dict)¶ https://json-schema.org/understanding-json-schema/reference/numeric.html#range
-
_create_string_length_expectation
(self, key: str, details: dict)¶ https://json-schema.org/understanding-json-schema/reference/string.html#length
-
_create_set_expectation
(self, key: str, details: dict)¶ https://json-schema.org/understanding-json-schema/reference/generic.html#enumerated-values
-
_create_null_or_not_null_column_expectation
(self, key: str, details: dict)¶ https://json-schema.org/understanding-json-schema/reference/null.html
-
abstract
_create_regex_expectation
(self, key: str, details: dict)¶
-
abstract
_create_string_format_expectation
(self, key: str, details: dict)¶
-
abstract
_create_array_expectation
(self, key: str, details: dict)¶
-