terraform-provider-openapi
terraform-provider-openapi copied to clipboard
using "allOf" triggers exit with error "non supported '[]' type"
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:
- start with any working openapi v2 spec and terraform module
- change the schema of anything from
x
to{allOf: [x]}
- 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)