dosubot[bot] commented on issue #33884: URL: https://github.com/apache/superset/issues/33884#issuecomment-3001008249
<!-- Greeting --> Hi @igotagood1! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> The backend and schema for the /api/v1/dashboard endpoint both define the owners property as an array (list) of user objects, not as a single object. The actual API response matches this definition, so there is no evidence in the codebase or schema that owners should ever be an object. This means the mismatch you’re seeing is likely due to an issue with the OpenAPI/Swagger documentation generation or how your client interprets the spec, not a bug in the API implementation itself. If you’re using a generated client, you may need to manually adjust the spec or the client code to expect an array for owners. Double-check the OpenAPI spec file being used for client generation—if it incorrectly defines owners as an object, updating it to an array of user objects should resolve the issue. There are no recent changes or known issues in the repo addressing this, so if the problem persists in the official OpenAPI spec, it’s likely a documentation tooling bug rather than an API bug. For reference, the schema and serialization logic for owners as an array can be seen in the code: - [DashboardGetResponseSchema in dashboards/schemas.py](https://github.com/apache/superset/blob/5d23dea5aad027c64ac80c49dd69cf7dbe9b13c7/superset/dashboards/schemas.py) - [API response construction in dashboards/api.py](https://github.com/apache/superset/blob/5d23dea5aad027c64ac80c49dd69cf7dbe9b13c7/superset/dashboards/api.py) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/3e608df9-04e2-40f0-8ade-0b50da6045b9?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/3e608df9-04e2-40f0-8ade-0b50da6045b9?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/3e608df9-04e2-40f0-8ade-0b50da6045b9?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/3e608df9-04e2-40f0-8ade-0b50da6045b9?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3e608df9-04e2-40f0-8ade-0b50da6045b9?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/3e608df9-04e2-40f0-8ade-0b50da6045b9?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3e608df9-04e2-40f0-8ade-0b50da6045b9?feedback_type=other)</sup> [](https://go.dosu.dev/discord-bot) [! [Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/33884) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
