Closed dgjustice closed 3 years ago
When I run make clean && make generate
, I get a ton of file changes and failing tests. Is there a pinned version of the go-swagger container that is being used? I assume this process should be idempotent.
swagger version
version: v0.24.0
commit: 094421c7a2e1a7982cb28fdc0fc2bda610bbcc56
This is only a problem when a device has a "config context" attached to it.
I believe the problem is in the swagger spec here: https://github.com/netbox-community/go-netbox/blob/master/swagger.json#L32639
Resulting in an incorrect type here: https://github.com/netbox-community/go-netbox/blob/master/netbox/models/device_with_config_context.go#L52
I believe it should be (works locally at least):
I haven't touched go in a while, but I'll try to PR this once I figure out the config gen.