terraform-provider-openapi icon indicating copy to clipboard operation
terraform-provider-openapi copied to clipboard

using "allOf" triggers exit with error "non supported '[]' type"

Open winmillwill opened this issue 4 years ago • 0 comments

Describe the bug

When using allOf in the schema, the program exits with an error, even if there is only one schema in the list and that schema worked before.

To Reproduce

Steps to reproduce the behavior:

  1. start with any working openapi v2 spec and terraform module
  2. change the schema of anything from x to {allOf: [x]}
  3. run terraform plan

Expected behaviour

Example:

Scenario:
Given a schema
When it uses allOf
Then the validator should detect that all of the schemas apply

Checklist (for admin only)

Don't forget to go through the checklist to make sure the issue is created properly:

  • [ ] I have added a corresponding label (bug) to the issue (right side menu)
  • [ ] I have added this issue to the 'API Terraform Provider' GitHub project (right side menu)

winmillwill avatar Mar 01 '20 18:03 winmillwill