printSchemaWithDirectives only prints a subset of schema directives. The specific issue I ran into was with directives on enum values, but looking at the code it looks like the only targets that are included are objects, input objects, fields and input object fields. It looks like the remaining possible targets (schema definition, scalars, arguments, unions, interfaces, enums and enum values) are left untouched.
printSchemaWithDirectivesonly prints a subset of schema directives. The specific issue I ran into was with directives on enum values, but looking at the code it looks like the only targets that are included are objects, input objects, fields and input object fields. It looks like the remaining possible targets (schema definition, scalars, arguments, unions, interfaces, enums and enum values) are left untouched.