You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently maximum and minimum attributes are not supported in the provider, hence terraform configuration may contain invalid values which will end up being posted to the API, and the API would return an error. This feature requests adds support for both
When the openapi terraform provider runs into a property that has max and min described, those should be added to the validation function for that property in the provider schema configuration so if the user terraform config contains non valid errors Terraform will fail upfront without the need to make and API call.
Acceptance criteria
ValidateFunc for a property containing maximum and minimum attributes would apply expected validation on the value inout by the user. If the value is not valid, terraform should return an error.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Checklist
Don't forget to go through the checklist to make sure the issue is created properly:
I have added a corresponding label (feature request/bug/etc) to the issue (right side menu)
I have added this issue to the 'API Terraform Provider' GitHub project (right side menu)
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Currently maximum and minimum attributes are not supported in the provider, hence terraform configuration may contain invalid values which will end up being posted to the API, and the API would return an error. This feature requests adds support for both
Describe the solution you'd like
When the openapi terraform provider runs into a property that has max and min described, those should be added to the validation function for that property in the provider schema configuration so if the user terraform config contains non valid errors Terraform will fail upfront without the need to make and API call.
Acceptance criteria
ValidateFunc for a property containing maximum and minimum attributes would apply expected validation on the value inout by the user. If the value is not valid, terraform should return an error.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Checklist
Don't forget to go through the checklist to make sure the issue is created properly:
The text was updated successfully, but these errors were encountered: