fastify / env-schema

Validate your env variable using Ajv and dotenv
MIT License
216 stars 25 forks source link

fix: correct expandEnv bug when passing in a new object in the data option #168

Closed serdnam closed 1 year ago

serdnam commented 1 year ago

This pull request fixes a bug I encountered while using env-schema, which is reproduced here: https://github.com/serdnam/env-schema-expand-bug

I have added a test that failed prior to making the needed change and passes with said change, all other tests pass.

This is my first time contributing to the Fastify org, let me know if there is anything that I missed!

Checklist

serdnam commented 1 year ago

Thank you!