Default values not being inherited from the default block - asks me to provide them as they are required

When you write code in your forum posts, the forum is mangling it a bit. I wrote some advice about this in Welcome to the forum - please reformat your message

As to your actual question, @apparentlymart included a link to the relevant section of the Terraform documentation - please click through and read that section. In short, you would change your type declaration to include

  name = optional(string, "a")