:doc:`Glue <../../glue>` / Client / check_schema_version_validity

*****************************
check_schema_version_validity
*****************************



.. py:method:: Glue.Client.check_schema_version_validity(**kwargs)

  

  Validates the supplied schema. This call has no side effects, it simply validates using the supplied schema using ``DataFormat`` as the format. Since it does not take a schema set name, no compatibility checks are performed.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/glue-2017-03-31/CheckSchemaVersionValidity>`_  


  **Request Syntax**
  ::

    response = client.check_schema_version_validity(
        DataFormat='AVRO'|'JSON'|'PROTOBUF',
        SchemaDefinition='string'
    )
    
  :type DataFormat: string
  :param DataFormat: **[REQUIRED]** 

    The data format of the schema definition. Currently ``AVRO``, ``JSON`` and ``PROTOBUF`` are supported.

    

  
  :type SchemaDefinition: string
  :param SchemaDefinition: **[REQUIRED]** 

    The definition of the schema that has to be validated.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Valid': True|False,
          'Error': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Valid** *(boolean) --* 

        Return true, if the schema is valid and false otherwise.

        
      

      - **Error** *(string) --* 

        A validation failure error message.

        
  
  **Exceptions**
  
  *   :py:class:`Glue.Client.exceptions.InvalidInputException`

  
  *   :py:class:`Glue.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Glue.Client.exceptions.InternalServiceException`

  