-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Netbox openapi schema is generating incorrect response types #15404
Comments
Is this really low severity? This breaks clients that use the openapi to generate/implement clients for netbox and its pretty big regression. We for example cannot upgrade to new Netbox without this feature working properly as we rely on openapi heavily. |
Yes, it's considered low severity as only the schema is affected; the function of the API itself is not. Of course, if this is pressing for you, you are more then welcome to submit a PR for it. Can I assign this to you? |
Alright. For now we are not upgrading past 3.5.0, if I will have some time I will look at it, but can't make any promises so probs dont assign it to me (in case someone that might know what caused this would want to look at this like @arthanson as I assume this PR caused the incorrect behavior: #11626) |
Interface.TaggedVlans is another one |
_PaginatedInterfaceList.results
of type int32
netbox-community/go-netbox#170
Looks like this is now mostly resolved EDIT: But here is related issue that also needs to be solved for the schema to be correct: #16670 |
Deployment Type
Self-hosted
NetBox Version
v3.7.3
Python Version
3.9
Steps to Reproduce
Expected Behavior
Openapi schema and actual API response must always match otherwise the schema is basically unusable. The response and schema used to match in past (confirmed on 3.4.5 at least) so something broke since.
Observed Behavior
Schema and response do not match. Observed behaviour is for site.asns, configcontext.roles, configcontext.tenants, virtualizationinterface.tagged_vlans, but there are probably more.
The text was updated successfully, but these errors were encountered: