aws-cloudformation / aws-cloudformation/cloudformation-cli
Duplicate keys not caught by `cfn-cli validate`
- Vorherrschende Sprache
- Python
- Sterne
- 336
- Forks
- 172
- Ø Merge
- 3 T. 5 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
We were getting stabilization errors on an `AWS::CloudFormation::ResourceVersion` of ours. The `schema.json` passed validation and generated correctly via `cfn-cli`.
Anyway, here is the diff of the change to our `schema.json` that fixed the CloudFormation stabilization issue. I'd expect `cfn-cli validate` to have caught this, but it didn't. As you can see there were two `Indexes` keys defined in the properties of an object definition.

Beitragsleitfaden
Rechercherichtung
Beginne damit, das Problem mit cfn-cli validate und der schema.json zu reproduzieren, die doppelte Indexes-Schlüssel enthält. Verfolge den Einstiegspunkt der Validierung und ermittle, an welcher Stelle doppelte Objektschlüssel abgelehnt werden sollten. Als abgeschlossen gilt die Arbeit, wenn die Validierung das Duplikat meldet, anstatt das Schema zu akzeptieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, python
- Bereich
- cloud, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100