schema_salad.validate
Module Contents
Functions
|
|
|
Produce an avro friendly short name. |
|
Turn a URL into an Avro-safe name. |
|
|
|
|
|
Determine if a python datum is an instance of a schema. |
Attributes
- schema_salad.validate.validate(expected_schema, datum, identifiers=None, strict=False, foreign_properties=None, vocab=None)
- schema_salad.validate.INT_MIN_VALUE
- schema_salad.validate.INT_MAX_VALUE
- schema_salad.validate.LONG_MIN_VALUE
- schema_salad.validate.LONG_MAX_VALUE
- schema_salad.validate.avro_shortname(name)
Produce an avro friendly short name.
- schema_salad.validate.saladp = 'https://w3id.org/cwl/salad#'
- schema_salad.validate.primitives
- schema_salad.validate.avro_type_name(url)
Turn a URL into an Avro-safe name.
If the URL has no fragment, return this plain URL.
Extract either the last part of the URL fragment past the slash, otherwise the whole fragment.
- schema_salad.validate.friendly(v)
- Parameters:
v (Any) –
- Return type:
Any
- schema_salad.validate.validate_ex(expected_schema, datum, identifiers=None, strict=False, foreign_properties=None, raise_ex=True, strict_foreign_properties=False, logger=_logger, skip_foreign_properties=False, vocab=None)
Determine if a python datum is an instance of a schema.
- Parameters:
expected_schema (schema_salad.avro.schema.Schema) –
datum (Any) –
identifiers (Optional[List[str]]) –
strict (bool) –
foreign_properties (Optional[Set[str]]) –
raise_ex (bool) –
strict_foreign_properties (bool) –
logger (logging.Logger) –
skip_foreign_properties (bool) –
- Return type: