Hi Chris,
Yes, I think this behavior is expected. To avoid having redundant checks, Cantera does most of the mechanism validation when you import the YAML file. This way, we can detect errors in files that are created in the YAML format, and not only converted Chemkin files. Generating the YAML file doesn’t require us to know anything about the link between the elements in each species and the elements declared in the phase, so this doesn’t get checked in ck2yaml.
To validate the mechanism, you should just import it as a Solution object. This is exactly what the ck2yaml does for this purpose when you run it as a command line script rather than using the ck2yaml.Parser.convert_mech method directly.
Regards,
Ray