Glue / Client / check_schema_version_validity

check_schema_version_validity#

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

Request Syntax

response = client.check_schema_version_validity(
    DataFormat='AVRO'|'JSON'|'PROTOBUF',
    SchemaDefinition='string'
)
Parameters:
  • DataFormat (string) –

    [REQUIRED]

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

  • SchemaDefinition (string) –

    [REQUIRED]

    The definition of the schema that has to be validated.

Return type:

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