nautobot / go-nautobot

Autogenerated Nautobot API Go Bindings
Other
7 stars 3 forks source link

Update Support 2.x #27

Closed TobiPeterG closed 2 months ago

TobiPeterG commented 4 months ago

This PR aims to support nautobot 2.x and updating the oapi code generation.

Currently, these errors are thrown:

api-1      | + go test -v '-gcflags=-e'
oapi-1      | # github.com/nautobot/go-nautobot/pkg/nautobot [github.com/nautobot/go-nautobot/pkg/nautobot.test]
oapi-1      | ./nautobot.go:159417:17: cannot use "circuits.circuittermination" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159425:17: cannot use "circuits.circuittermination" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159445:17: cannot use "dcim.consoleport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159453:17: cannot use "dcim.consoleport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159473:17: cannot use "dcim.consoleserverport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159481:17: cannot use "dcim.consoleserverport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159501:17: cannot use "dcim.frontport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159509:17: cannot use "dcim.frontport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159529:17: cannot use "dcim.interface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159537:17: cannot use "dcim.interface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159557:17: cannot use "dcim.powerfeed" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159565:17: cannot use "dcim.powerfeed" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159585:17: cannot use "dcim.poweroutlet" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159593:17: cannot use "dcim.poweroutlet" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159613:17: cannot use "dcim.powerport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159621:17: cannot use "dcim.powerport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159641:17: cannot use "dcim.rearport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:159649:17: cannot use "dcim.rearport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:162196:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:162204:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:162937:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:162945:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:165786:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:165794:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171673:17: cannot use "circuits.circuit" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171681:17: cannot use "circuits.circuit" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171701:17: cannot use "circuits.circuittermination" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171709:17: cannot use "circuits.circuittermination" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171729:17: cannot use "circuits.circuittype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171737:17: cannot use "circuits.circuittype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171757:17: cannot use "circuits.provider" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171765:17: cannot use "circuits.provider" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171785:17: cannot use "circuits.providernetwork" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171793:17: cannot use "circuits.providernetwork" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171813:17: cannot use "dcim.cable" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171821:17: cannot use "dcim.cable" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171841:17: cannot use "dcim.consoleport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171849:17: cannot use "dcim.consoleport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171869:17: cannot use "dcim.consoleserverport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171877:17: cannot use "dcim.consoleserverport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171897:17: cannot use "dcim.device" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171905:17: cannot use "dcim.device" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171925:17: cannot use "dcim.devicebay" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171933:17: cannot use "dcim.devicebay" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171953:17: cannot use "dcim.deviceredundancygroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171961:17: cannot use "dcim.deviceredundancygroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171981:17: cannot use "dcim.devicetype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:171989:17: cannot use "dcim.devicetype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172009:17: cannot use "dcim.frontport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172017:17: cannot use "dcim.frontport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172037:17: cannot use "dcim.interface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172045:17: cannot use "dcim.interface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172065:17: cannot use "dcim.interfaceredundancygroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172073:17: cannot use "dcim.interfaceredundancygroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172093:17: cannot use "dcim.inventoryitem" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172101:17: cannot use "dcim.inventoryitem" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172121:17: cannot use "dcim.location" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172129:17: cannot use "dcim.location" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172149:17: cannot use "dcim.locationtype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172157:17: cannot use "dcim.locationtype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172177:17: cannot use "dcim.manufacturer" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172185:17: cannot use "dcim.manufacturer" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172205:17: cannot use "dcim.platform" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172213:17: cannot use "dcim.platform" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172233:17: cannot use "dcim.powerfeed" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172241:17: cannot use "dcim.powerfeed" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172261:17: cannot use "dcim.poweroutlet" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172269:17: cannot use "dcim.poweroutlet" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172289:17: cannot use "dcim.powerpanel" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172297:17: cannot use "dcim.powerpanel" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172317:17: cannot use "dcim.powerport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172325:17: cannot use "dcim.powerport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172345:17: cannot use "dcim.rack" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172353:17: cannot use "dcim.rack" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172373:17: cannot use "dcim.rackgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172381:17: cannot use "dcim.rackgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172401:17: cannot use "dcim.rackreservation" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172409:17: cannot use "dcim.rackreservation" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172429:17: cannot use "dcim.rearport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172437:17: cannot use "dcim.rearport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172457:17: cannot use "dcim.virtualchassis" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172465:17: cannot use "dcim.virtualchassis" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172485:17: cannot use "extras.computedfield" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172493:17: cannot use "extras.computedfield" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172513:17: cannot use "extras.configcontext" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172521:17: cannot use "extras.configcontext" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172541:17: cannot use "extras.configcontextschema" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172549:17: cannot use "extras.configcontextschema" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172569:17: cannot use "extras.customfield" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172577:17: cannot use "extras.customfield" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172597:17: cannot use "extras.customlink" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172605:17: cannot use "extras.customlink" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172625:17: cannot use "extras.dynamicgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172633:17: cannot use "extras.dynamicgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172653:17: cannot use "extras.exporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172661:17: cannot use "extras.exporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172681:17: cannot use "extras.externalintegration" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172689:17: cannot use "extras.externalintegration" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172709:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172717:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172737:17: cannot use "extras.graphqlquery" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172745:17: cannot use "extras.graphqlquery" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172765:17: cannot use "extras.job" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172773:17: cannot use "extras.job" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172793:17: cannot use "extras.jobbutton" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172801:17: cannot use "extras.jobbutton" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172821:17: cannot use "extras.jobhook" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172829:17: cannot use "extras.jobhook" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172849:17: cannot use "extras.relationship" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172857:17: cannot use "extras.relationship" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172877:17: cannot use "extras.role" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172885:17: cannot use "extras.role" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172905:17: cannot use "extras.secret" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172913:17: cannot use "extras.secret" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172933:17: cannot use "extras.secretsgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172941:17: cannot use "extras.secretsgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172961:17: cannot use "extras.status" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172969:17: cannot use "extras.status" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172989:17: cannot use "extras.tag" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:172997:17: cannot use "extras.tag" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173017:17: cannot use "extras.webhook" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173025:17: cannot use "extras.webhook" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173045:17: cannot use "ipam.ipaddress" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173053:17: cannot use "ipam.ipaddress" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173073:17: cannot use "ipam.namespace" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173081:17: cannot use "ipam.namespace" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173101:17: cannot use "ipam.prefix" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173109:17: cannot use "ipam.prefix" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173129:17: cannot use "ipam.rir" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173137:17: cannot use "ipam.rir" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173157:17: cannot use "ipam.routetarget" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173165:17: cannot use "ipam.routetarget" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173185:17: cannot use "ipam.service" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173193:17: cannot use "ipam.service" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173213:17: cannot use "ipam.vlan" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173221:17: cannot use "ipam.vlan" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173241:17: cannot use "ipam.vlangroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173249:17: cannot use "ipam.vlangroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173269:17: cannot use "ipam.vrf" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173277:17: cannot use "ipam.vrf" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173297:17: cannot use "tenancy.tenant" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173305:17: cannot use "tenancy.tenant" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173325:17: cannot use "tenancy.tenantgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173333:17: cannot use "tenancy.tenantgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173353:17: cannot use "virtualization.cluster" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173361:17: cannot use "virtualization.cluster" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173381:17: cannot use "virtualization.clustergroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173389:17: cannot use "virtualization.clustergroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173409:17: cannot use "virtualization.clustertype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173417:17: cannot use "virtualization.clustertype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173437:17: cannot use "virtualization.virtualmachine" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173445:17: cannot use "virtualization.virtualmachine" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173465:17: cannot use "virtualization.vminterface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173473:17: cannot use "virtualization.vminterface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173776:17: cannot use "circuits.providernetwork" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173784:17: cannot use "circuits.providernetwork" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173804:17: cannot use "circuits.provider" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173812:17: cannot use "circuits.provider" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173832:17: cannot use "circuits.circuittype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173840:17: cannot use "circuits.circuittype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173860:17: cannot use "circuits.circuit" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173868:17: cannot use "circuits.circuit" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173888:17: cannot use "circuits.circuittermination" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173896:17: cannot use "circuits.circuittermination" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173916:17: cannot use "dcim.consoleport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173924:17: cannot use "dcim.consoleport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173944:17: cannot use "dcim.consoleserverport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173952:17: cannot use "dcim.consoleserverport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173972:17: cannot use "dcim.powerport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:173980:17: cannot use "dcim.powerport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174000:17: cannot use "dcim.poweroutlet" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174008:17: cannot use "dcim.poweroutlet" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174028:17: cannot use "dcim.interface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174036:17: cannot use "dcim.interface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174056:17: cannot use "dcim.interfaceredundancygroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174064:17: cannot use "dcim.interfaceredundancygroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174084:17: cannot use "dcim.interfaceredundancygroupassociation" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174092:17: cannot use "dcim.interfaceredundancygroupassociation" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174112:17: cannot use "dcim.frontport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174120:17: cannot use "dcim.frontport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174140:17: cannot use "dcim.rearport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174148:17: cannot use "dcim.rearport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174168:17: cannot use "dcim.devicebay" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174176:17: cannot use "dcim.devicebay" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174196:17: cannot use "dcim.inventoryitem" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174204:17: cannot use "dcim.inventoryitem" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174224:17: cannot use "dcim.manufacturer" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174232:17: cannot use "dcim.manufacturer" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174252:17: cannot use "dcim.devicetype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174260:17: cannot use "dcim.devicetype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174280:17: cannot use "dcim.platform" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174288:17: cannot use "dcim.platform" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174308:17: cannot use "dcim.device" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174316:17: cannot use "dcim.device" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174336:17: cannot use "dcim.virtualchassis" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174344:17: cannot use "dcim.virtualchassis" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174364:17: cannot use "dcim.deviceredundancygroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174372:17: cannot use "dcim.deviceredundancygroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174392:17: cannot use "dcim.cable" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174400:17: cannot use "dcim.cable" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174420:17: cannot use "dcim.consoleporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174428:17: cannot use "dcim.consoleporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174448:17: cannot use "dcim.consoleserverporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174456:17: cannot use "dcim.consoleserverporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174476:17: cannot use "dcim.powerporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174484:17: cannot use "dcim.powerporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174504:17: cannot use "dcim.poweroutlettemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174512:17: cannot use "dcim.poweroutlettemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174532:17: cannot use "dcim.interfacetemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174540:17: cannot use "dcim.interfacetemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174560:17: cannot use "dcim.frontporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174568:17: cannot use "dcim.frontporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174588:17: cannot use "dcim.rearporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174596:17: cannot use "dcim.rearporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174616:17: cannot use "dcim.devicebaytemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174624:17: cannot use "dcim.devicebaytemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174644:17: cannot use "dcim.locationtype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174652:17: cannot use "dcim.locationtype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174672:17: cannot use "dcim.location" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174680:17: cannot use "dcim.location" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174700:17: cannot use "dcim.powerpanel" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174708:17: cannot use "dcim.powerpanel" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174728:17: cannot use "dcim.powerfeed" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174736:17: cannot use "dcim.powerfeed" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174756:17: cannot use "dcim.rackgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174764:17: cannot use "dcim.rackgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174784:17: cannot use "dcim.rack" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174792:17: cannot use "dcim.rack" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174812:17: cannot use "dcim.rackreservation" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174820:17: cannot use "dcim.rackreservation" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174840:17: cannot use "ipam.namespace" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174848:17: cannot use "ipam.namespace" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174868:17: cannot use "ipam.vrf" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174876:17: cannot use "ipam.vrf" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174896:17: cannot use "ipam.routetarget" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174904:17: cannot use "ipam.routetarget" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174924:17: cannot use "ipam.rir" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174932:17: cannot use "ipam.rir" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174952:17: cannot use "ipam.prefix" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174960:17: cannot use "ipam.prefix" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174980:17: cannot use "ipam.ipaddress" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:174988:17: cannot use "ipam.ipaddress" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175008:17: cannot use "ipam.vlangroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175016:17: cannot use "ipam.vlangroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175036:17: cannot use "ipam.vlan" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175044:17: cannot use "ipam.vlan" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175064:17: cannot use "ipam.service" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175072:17: cannot use "ipam.service" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175092:17: cannot use "extras.computedfield" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175100:17: cannot use "extras.computedfield" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175120:17: cannot use "extras.customfield" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175128:17: cannot use "extras.customfield" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175148:17: cannot use "extras.customfieldchoice" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175156:17: cannot use "extras.customfieldchoice" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175176:17: cannot use "extras.relationship" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175184:17: cannot use "extras.relationship" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175204:17: cannot use "extras.tag" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175212:17: cannot use "extras.tag" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175232:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175240:17: cannot use "extras.gitrepository" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175260:17: cannot use "extras.dynamicgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175268:17: cannot use "extras.dynamicgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175288:17: cannot use "extras.job" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175296:17: cannot use "extras.job" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175316:17: cannot use "extras.jobhook" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175324:17: cannot use "extras.jobhook" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175344:17: cannot use "extras.jobbutton" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175352:17: cannot use "extras.jobbutton" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175372:17: cannot use "extras.configcontext" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175380:17: cannot use "extras.configcontext" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175400:17: cannot use "extras.configcontextschema" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175408:17: cannot use "extras.configcontextschema" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175428:17: cannot use "extras.customlink" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175436:17: cannot use "extras.customlink" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175456:17: cannot use "extras.exporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175464:17: cannot use "extras.exporttemplate" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175484:17: cannot use "extras.externalintegration" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175492:17: cannot use "extras.externalintegration" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175512:17: cannot use "extras.graphqlquery" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175520:17: cannot use "extras.graphqlquery" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175540:17: cannot use "extras.note" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175548:17: cannot use "extras.note" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175568:17: cannot use "extras.webhook" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175576:17: cannot use "extras.webhook" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175596:17: cannot use "extras.role" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175604:17: cannot use "extras.role" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175624:17: cannot use "extras.secret" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175632:17: cannot use "extras.secret" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175652:17: cannot use "extras.secretsgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175660:17: cannot use "extras.secretsgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175680:17: cannot use "extras.status" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175688:17: cannot use "extras.status" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175708:17: cannot use "tenancy.tenantgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175716:17: cannot use "tenancy.tenantgroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175736:17: cannot use "tenancy.tenant" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175744:17: cannot use "tenancy.tenant" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175764:17: cannot use "users.objectpermission" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175772:17: cannot use "users.objectpermission" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175792:17: cannot use "virtualization.clustertype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175800:17: cannot use "virtualization.clustertype" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175820:17: cannot use "virtualization.clustergroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175828:17: cannot use "virtualization.clustergroup" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175848:17: cannot use "virtualization.cluster" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175856:17: cannot use "virtualization.cluster" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175876:17: cannot use "virtualization.virtualmachine" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175884:17: cannot use "virtualization.virtualmachine" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175904:17: cannot use "virtualization.vminterface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:175912:17: cannot use "virtualization.vminterface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203085:17: cannot use "circuits.circuittermination" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203093:17: cannot use "circuits.circuittermination" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203113:17: cannot use "dcim.consoleport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203121:17: cannot use "dcim.consoleport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203141:17: cannot use "dcim.consoleserverport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203149:17: cannot use "dcim.consoleserverport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203169:17: cannot use "dcim.interface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203177:17: cannot use "dcim.interface" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203197:17: cannot use "dcim.powerfeed" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203205:17: cannot use "dcim.powerfeed" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203225:17: cannot use "dcim.poweroutlet" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203233:17: cannot use "dcim.poweroutlet" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203253:17: cannot use "dcim.powerport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot.go:203261:17: cannot use "dcim.powerport" (untyped string constant) as *string value in assignment
oapi-1      | ./nautobot_dcim_test.go:34:4: not enough arguments in call to nautobotSession.DcimManufacturersCreateWithResponse
oapi-1      |   have (context.Context, ManufacturerRequest)
oapi-1      |   want (context.Context, *DcimManufacturersCreateParams, ManufacturerRequest, ...RequestEditorFn)
oapi-1      | ./nautobot_dcim_test.go:42:48: cannot convert gjson.Get(data, "id").String() (value of type string) to type uuid.UUID
oapi-1      | ./nautobot_dcim_test.go:48:3: not enough arguments in call to nautobotSession.DcimManufacturersBulkUpdateWithResponse
oapi-1      |   have (context.Context, []BulkWritableManufacturerRequest)
oapi-1      |   want (context.Context, *DcimManufacturersBulkUpdateParams, []BulkWritableManufacturerRequest, ...RequestEditorFn)
oapi-1      | ./nautobot_dcim_test.go:74:3: not enough arguments in call to nautobotSession.DcimManufacturersBulkDestroyWithResponse
oapi-1      |   have (context.Context, []BulkOperationRequest)
oapi-1      |   want (context.Context, *DcimManufacturersBulkDestroyParams, []BulkOperationRequest, ...RequestEditorFn)
oapi-1oapi-1      | FAIL    github.com/nautobot/go-nautobot/pkg/nautobot [build failed]
      | ./nautobot_dcim_test.go:98:3: not enough arguments in call to nautobotSession.DcimManufacturersCreateWithResponse
oapi-1      |   have (context.Context, ManufacturerRequest)
oapi-1      |   want (context.Context, *DcimManufacturersCreateParams, ManufacturerRequest, ...RequestEditorFn)
oapi-1      | ./nautobot_dcim_test.go:110:33: cannot convert gjson.Get(responseData, "id").String() (value of type string) to type uuid.UUID
oapi-1 exited with code 1

This issue seems to be related to https://github.com/oapi-codegen/oapi-codegen/issues/1360

chadell commented 4 months ago

Hi @TobiPeterG , thank you very much for your contribution. We will check it as soon as possible

chadell commented 3 months ago

hi @TobiPeterG , do you have a user in networktocode slack channel?

TobiPeterG commented 3 months ago

hi @TobiPeterG , do you have a user in networktocode slack channel?

No, not yet. I didn't know there was a slack channel for nautobot :D

TobiPeterG commented 3 months ago

hi @TobiPeterG , do you have a user in networktocode slack channel?

Now I have, my name is Tobias G on slack

TobiPeterG commented 2 months ago

Closed in favor of https://github.com/nautobot/go-nautobot/pull/30