https://github.com/opencontainers/runtime-spec/tree/master/schema has strong and beautiful validation function. We can use it here.