elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.69k stars 8.12k forks source link

Improve FTR config type safety #69393

Open mshustov opened 4 years ago

mshustov commented 4 years ago

Migrate FTR to @kbn/config-schema to support type-safe config and get rid of direct Joi usage. After that we could improve type-safety of FTR config:

type FtrConfigFactory = (context: FtrConfigProviderContext) => FtrConfig;
const config: FtrConfigFactory = async function ({ readConfigFile }) {..}
export { config as default };
elasticmachine commented 4 years ago

Pinging @elastic/kibana-operations (Team:Operations)