Skip to content
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

16423 - Inconsistency Swagger schema vs API (model Interface) #16435

Conversation

Julio-Oliveira-Encora
Copy link
Contributor

Fixes: #16423

Changed nested to false for device in InterfaceSerializer in device_components.py.

@arthanson
Copy link
Collaborator

@Julio-Oliveira-Encora can you please fix the tests that are failing.

Added get_serializer_class for InterfaceViewSet.
@Julio-Oliveira-Encora
Copy link
Contributor Author

@Julio-Oliveira-Encora can you please fix the tests that are failing.

Fixed.

@arthanson
Copy link
Collaborator

@Julio-Oliveira-Encora I think this is backwards - I don't think we want to change the serializer. The serializer should be returning the nested object. We want to change the REST schema to correctly reflect that the nested object is being returned.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistency Swagger schema vs API (model Interface)
2 participants