ansible / eda-server

Event Driven Ansible for AAP
Apache License 2.0
64 stars 41 forks source link

Declare parameters of only 2 sublists we get from DAB #910

Closed AlanCoding closed 3 months ago

AlanCoding commented 3 months ago

Depends on https://github.com/ansible/django-ansible-base/pull/410, this patch does not yet update the version so you'll probably see errors until then.

AAP-24205

This changes the behavior from

        "/role_definitions/{id}/team_assignments/": {
            "get": {
                "operationId": "role_definitions_team_assignments_list",
                "description": "Mixin used for related viewsets which contain a sub-list, like /organizations/N/teams/",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "schema": {
                            "type": "string",
                            "pattern": "^[0-9]+$"
                        },
                        "required": true
                    },

to

        "/role_definitions/{id}/user_assignments/": {
            "get": {
                "operationId": "role_definitions_user_assignments_list",
                "description": "Mixin used for related viewsets which contain a sub-list, like /organizations/N/teams/",
                "parameters": [
                    {
                        "in": "path",
                        "name": "id",
                        "schema": {
                            "type": "integer"
                        },
                        "description": "A unique integer value identifying this assignment.",
                        "required": true
                    },
msmagnanijr commented 3 months ago

@Alex-Izquierdo could you please take a look?

dhaustein commented 3 months ago

Tried with the test suite, the issue from AAP-24205 is now fixed. Thanks!