NHSDigital / ndr_support

National Disease Registers support gem
MIT License
4 stars 6 forks source link

Move to UTF-8 encode YAML and support YAML.safe_load #44

Closed bshand closed 11 months ago

bshand commented 11 months ago

These changes will be major version bump, but the old behaviour can be restored if necessary with a feature flag. This is a necessary step towards https://ncr.plan.io/issues/29615, identifying which classes we've embedded in our YAML and adding them to the safe list for encore.

I've just realised that we’re still generating base64 encoded text for YAML (in !binary blocks) for high UTF-8 characters. This PR allows us to turn that off and generate UTF-8 YAML.