fastify / env-schema

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

Fix typescript error due to schema type #137

Closed klaseca closed 1 year ago

klaseca commented 1 year ago

Checklist

Description:

Schema type was changed in pull request #134. One of the available schema types was ObjectSchema from fluent-json-schema package. Since fluent-json-schema is a development dependency, we cannot use it for production code

Now, if we do not install fluent-json-schema manually, we will get the wrong type for schema, or an error if we use "skipLibCheck": false in the typescript config file

After this fix, we can still use fluent-json-schema, but we will not get wrong type or error if this package is missing