stelligent / mutato

Repo formerly known as mu-cdk. A.K.A Mu2. Pronounced: mew-tah-toe
https://stelligent.github.io/mutato/
MIT License
23 stars 2 forks source link

figure out how to reject multiple `infra` type constructs at schema level when they are provided in their explicit form. #21

Closed 3p3r closed 4 years ago

3p3r commented 4 years ago

Per MVP design docs, infra constructs (network, cluster, and cicd) can be either omitted from mu.yml or appear at most once. When provided in the shorthand version, this issue is automatically resolved due to the nature of json objects (two keys with the same name cannot coexist in the same object).

When provided in the explicit version, the following mu.yml should be rejected at the schema level:

mu:
  name1:
    type: cicd
    ...

  name2:
    type: cicd
    ...
3p3r commented 4 years ago

Closing this ticket per changes introduced to the schema in 41da5b08894713c9edfcb15a2b614771e9c1a934