{"action":"created","issue":{"url":"https://api.github.com/repos/axnsan12/drf-yasg/issues/136","repository_url":"https://api.github.com/repos/axnsan12/drf-yasg","labels_url":"https://api.github.com/repos/axnsan12/drf-yasg/issues/136/labels{/name}","comments_url":"https://api.github.com/repos/axnsan12/drf-yasg/issues/136/comments","events_url":"https://api.github.com/repos/axnsan12/drf-yasg/issues/136/events","html_url":"https://github.com/axnsan12/drf-yasg/issues/136","id":328609068,"node_id":"MDU6SXNzdWUzMjg2MDkwNjg=","number":136,"title":"Custom SerializerInspector is not called","user":{"login":"intellisense","id":1216537,"node_id":"MDQ6VXNlcjEyMTY1Mzc=","avatar_url":"https://avatars3.githubusercontent.com/u/1216537?v=4","gravatar_id":"","url":"https://api.github.com/users/intellisense","html_url":"https://github.com/intellisense","followers_url":"https://api.github.com/users/intellisense/followers","following_url":"https://api.github.com/users/intellisense/following{/other_user}","gists_url":"https://api.github.com/users/intellisense/gists{/gist_id}","starred_url":"https://api.github.com/users/intellisense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intellisense/subscriptions","organizations_url":"https://api.github.com/users/intellisense/orgs","repos_url":"https://api.github.com/users/intellisense/repos","events_url":"https://api.github.com/users/intellisense/events{/privacy}","received_events_url":"https://api.github.com/users/intellisense/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-01T17:58:28Z","updated_at":"2018-06-02T00:09:59Z","closed_at":"2018-06-01T21:49:45Z","author_association":"NONE","body":"I am using a `Serializer` for request body initially, but I also want to add couple of more parameter into it, hence I wrote custom serializer inspector:\r\n\r\n```python\r\nfrom drf_yasg.inspectors import SerializerInspector\r\n\r\nclass BaseFieldSerializerInspector(SerializerInspector):\r\n\r\n    def get_request_parameters(self, serializer, in_):\r\n        parameters = super().get_request_parameters(serializer, in_)\r\n        # add extra parameters here\r\n        return parameters\r\n```\r\n\r\nAnd used it like so:\r\n\r\n```python\r\n@swagger_auto_schema(\r\n    operation_description='Updates a field.',\r\n    manual_parameters=[FIELD_ID_PATH_PARAMETER],\r\n    request_body=BaseFieldSerializer,\r\n    responses={\r\n        status.HTTP_200_OK: openapi.Response(\r\n            'Field updated successfully.',\r\n            BaseFieldSerializer\r\n        )\r\n    },\r\n    field_inspectors=[BaseFieldSerializerInspector]\r\n)\r\n```\r\n\r\nBut `BaseFieldSerializerInspector` is never called. Kindly help on this please. Thanks!"},"comment":{"url":"https://api.github.com/repos/axnsan12/drf-yasg/issues/comments/394039749","html_url":"https://github.com/axnsan12/drf-yasg/issues/136#issuecomment-394039749","issue_url":"https://api.github.com/repos/axnsan12/drf-yasg/issues/136","id":394039749,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDAzOTc0OQ==","user":{"login":"intellisense","id":1216537,"node_id":"MDQ6VXNlcjEyMTY1Mzc=","avatar_url":"https://avatars3.githubusercontent.com/u/1216537?v=4","gravatar_id":"","url":"https://api.github.com/users/intellisense","html_url":"https://github.com/intellisense","followers_url":"https://api.github.com/users/intellisense/followers","following_url":"https://api.github.com/users/intellisense/following{/other_user}","gists_url":"https://api.github.com/users/intellisense/gists{/gist_id}","starred_url":"https://api.github.com/users/intellisense/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intellisense/subscriptions","organizations_url":"https://api.github.com/users/intellisense/orgs","repos_url":"https://api.github.com/users/intellisense/repos","events_url":"https://api.github.com/users/intellisense/events{/privacy}","received_events_url":"https://api.github.com/users/intellisense/received_events","type":"User","site_admin":false},"created_at":"2018-06-02T00:09:58Z","updated_at":"2018-06-02T00:09:58Z","author_association":"NONE","body":"@axnsan12 Thanks for the clarification, one last help I need from you I would like to add `options` property which would be an array of objects, using the above approach in `process_result`:\r\n\r\n```\r\nschema.properties['test'] = openapi.Schema(\r\n    title='Test',\r\n    description='The test.',\r\n    type=openapi.TYPE_ARRAY,\r\n    items=openapi.Items(\r\n        type=openapi.TYPE_OBJECT,\r\n    )\r\n)\r\n```\r\n\r\nThere is already a serializer for options `OptionsSerializer`, is it possible to somehow use that serializer here for items? if not how can I further customize `openapi.items` to also include information regarding object type?:\r\n\r\n```\r\nitems=openapi.Items(\r\n    type=openapi.TYPE_OBJECT,  # I want to define properties for object here\r\n)\r\n```\r\n\r\nThanks for all the help."}}
{"actor":{"display_login":"intellisense"}}