Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config-loader: Config Schema Validation #23

Closed
azu opened this issue Feb 12, 2020 · 3 comments
Closed

config-loader: Config Schema Validation #23

azu opened this issue Feb 12, 2020 · 3 comments

Comments

@azu
Copy link
Member

azu commented Feb 12, 2020

We need to valite a config file written by user.
It means that secretlint need to get runtime validation like JSON Schema Validator.

We'll try to use shellyln/tynder: TypeScript friendly Data validator for JavaScript.

Schema is https://github.com/secretlint/secretlint/blob/master/packages/@secretlint/types/src/SecretLintConfigDescriptor.ts

@azu
Copy link
Member Author

azu commented Feb 13, 2020

tynder does not support interface O<T>{}.
It is difficult that convert TS to Validator using tynder.

@azu
Copy link
Member Author

azu commented Feb 13, 2020

We use typescript-json-validator.

@azu azu closed this as completed in 686b879 Feb 13, 2020
azu added a commit that referenced this issue Feb 13, 2020
azu added a commit that referenced this issue Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant