Produce a representation of an OpenAPI object, removing empty attributes

def representCleanOpenAPIObjects(dumper, data):
    """
    Produce a representation of an OpenAPI object, removing empty attributes
    """
    dct = _orderedCleanDict(data)

    return dumper.yaml_representers[type(dct)](dumper, dct)