[Synthetics] Consider validating client strategy for monitor body #159578
Closed
4 tasks
Labels
enhancement
New value added to drive a business result
Team:Uptime - DEPRECATED
Synthetics & RUM sub-team of Application Observability
v8.9.0
Describe the feature:
This ticket is simply to evaluate the use of kbn-schema and io-ts to help with validating monitor bodies for the following apis
Currently, we do not have any kbn-schema defined for the monitor body. However, we do use io.ts for runtime checking on the body. Since the client monitor body is the same type as the SO attributes currently, io-ts is used to ensure that the body sent is compatible with the SO schema. However, these types will soon be separated and require their own form of compile time or runtime-time type checking.
We need to ensure we have proper type checking in two places:
We should evaluate how we want to use io-ts and kbn-schema for both of these goals.
Is there any reason we should use kbn-schema alongside io-ts? Or should we stick with using io-ts exclusively because of how complicated the monitor types are?
The text was updated successfully, but these errors were encountered: