I have a map:
myMap = {
"map1" = {
stringItemOne = "value1"
integerItemTwo = 123
}
"map2" = {
stringItemOne = "value2"
integerItemTwo = 456
}
}
How can I declare the type constraint for this complex map?
type = object(object({stringItemOne=string, integerItemTwo=number})) fails with:
Object type constructor requires a map whose keys are attribute names and
whose values are the corresponding attribute types.