src/Writer.php
public static function writeToYaml(SpecObjectInterface $object): string
    {
        return Yaml::dump($object->getSerializableData(), 256, 2, Yaml::DUMP_OBJECT_AS_MAP);
    }
public static function writeToYaml(SpecObjectInterface $object): string
    {
        return Yaml::dump($object->getSerializableData(), 256, 2, Yaml::DUMP_OBJECT_AS_MAP);
    }
public static function writeToYaml ( SpecObjectInterface $ object ) : string { return Yaml :: dump ( $ object -> getSerializableData ( ) , 256 , 2 , Yaml :: DUMP_OBJECT_AS_MAP ) ; }
Convert OpenAPI spec object to YAML data.
@param SpecObjectInterface|OpenApi the OpenApi object instance.
@return string YAML string.
Convert OpenAPI spec object to YAML data .