-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Swagger API has incorrect documentation for /api/circuits/provider-accounts/ and api/circuits/provider-networks #16765
Comments
Looks like it also affects |
Thank you for reporting this problem in NetBox. I was able to reproduce it in a fresh installation of v4.0.6. I'm moving your issue along to We're generally aware that there are gaps in our OpenAPI coverage, but currently lack the team capacity to prioritize an effort to address these kinds of problems. If you or another developer with the requisite skills and capacity would like to work it through to a PR, please say so and a maintainer will assign the issue to you. |
I'm not much of a python programmer but if you can whip up a short
explainer and it's simple enough i'm willing to give it a shot.
…On Mon, Jul 1, 2024 at 3:42 PM Jeff Gehlbach ***@***.***> wrote:
Thank you for reporting this problem in NetBox. I was able to reproduce it
in a fresh installation of v4.0.6. I'm moving your issue along to needs
owner status.
We're generally aware that there are gaps in our OpenAPI coverage, but
currently lack the team capacity to prioritize an effort to address these
kinds of problems. If you or another developer with the requisite skills
and capacity would like to work it through to a PR, please say so and a
maintainer will assign the issue to you.
—
Reply to this email directly, view it on GitHub
<#16765 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKU7P7NO2UO7WNK5OMI54DZKG5LBAVCNFSM6AAAAABKDOPYWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQHE4DGNJRGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I want your expectations to be realistic – I can't guarantee approval of a PR, but if you're up for a learning exercise, go for it. Addressing these gaps really needs to be done as part of a holistic effort, using a consistent approach that has yet to be fleshed out. |
This looks potentially like a display issue with spectacular, the field is required in the yaml:
|
What's happening is the nested=True serializer is getting instantiated first in CircuitSerializer, it looks like Spectacular is caching the fields from this call and using that. |
closing as duplicate of #16670 |
Deployment Type
Self-hosted
NetBox Version
v4.0.6
Python Version
3.10
Steps to Reproduce
View the swagger API docs located at https://$hostname/api/schema/swagger-ui/#/circuits/circuits_provider_accounts_create and you will see that the schema for
ProviderAccountRequest
does not mention any need to specify which provider the account is mapped to, but this field is in fact required.Expected Behavior
The documentation should show all fields, especially required fields.
Observed Behavior
The required field 'provider' is missing from the documentation.
The text was updated successfully, but these errors were encountered: