The check to see if the __schema__.StreamMessage type already exists is using the wrong name (__schema__.stream_message) in the check, so multiple invocations of the script will raise an error, when the attempt is made to create the already existing type.
The check to see if the
__schema__.StreamMessage
type already exists is using the wrong name (__schema__.stream_message
) in the check, so multiple invocations of the script will raise an error, when the attempt is made to create the already existing type.