schema_salad.validate
=====================

.. py:module:: schema_salad.validate


Attributes
----------

.. autoapisummary::

   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.saladp
   schema_salad.validate.primitives


Functions
---------

.. autoapisummary::

   schema_salad.validate.validate
   schema_salad.validate.avro_shortname
   schema_salad.validate.avro_type_name
   schema_salad.validate.friendly
   schema_salad.validate.vpformat
   schema_salad.validate.validate_ex


Module Contents
---------------

.. py:function:: validate(expected_schema, datum, identifiers = None, strict = False, foreign_properties = None, vocab = None)

.. py:data:: INT_MIN_VALUE

.. py:data:: INT_MAX_VALUE

.. py:data:: LONG_MIN_VALUE

.. py:data:: LONG_MAX_VALUE

.. py:function:: avro_shortname(name)

   Produce an avro friendly short name.


.. py:data:: saladp
   :value: 'https://w3id.org/cwl/salad#'


.. py:data:: primitives

.. py:function:: 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.


.. py:function:: friendly(v)

   Format an Avro schema into a pretty-printed representation.


.. py:function:: vpformat(datum)

   Truncate a pretty-printed representation of a Python object to 160 characters.


.. py:function:: 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.


