-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support object without properties #292
Comments
Hi @FalcoSuessgott , Thanks for opening the issue, I was just reading the custom field docs to try and get a bit more context and was wondering about the following:
Hope that helps! Thanks |
Hi @FalcoSuessgott , Just wanted to follow up on this and see whether the previous response help at all. Reading again the error you got from the terraform provider I wonder if removing the Default from the OpenApi spec for the object property might also unblock you:
Currently, Terraform does not support setting defaults for fields other than primitives. Thanks, |
Is your feature request related to a problem?
We want to use that provider as a netbox terraform provider, which supports OpenAPIv2.
Currently defintions of type objects without any properties are not supported.
Netbox offers the possibility to add custom fields to objects. Those custom fields can have various data types (bool, string, date, ...).
Since in the OpenAPI spec those custom_fields are represented as objects without any properties:
Currently the provider responds the following:
As a terraform schema,
custom_fields
are represented as the followingDescribe the solution you'd like
It would be nice to have maps supported or to find a workaround to get that provider working with empty objects.
Describe alternatives you've considered
Maybe you can give us some hints where to start implementing this feature on our own.
Checklist (for admin only)
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: