Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Raphael Cohen <raphael.cohen.utt@gmail.com>
René Kälin <rene@matraxi.ch>
Roberto Barreda <roberto.barreda@gmail.com>
Rohith PR <praroh2@gmail.com>
Safa AlFulaij <safa1996alfulaij@gmail.com>
santiavenda <santiavenda2@gmail.com>
Sergey Kolomenkin <https://kolomenkin.com>
Stas S. <stas@nerd.ro>
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ any parts of the framework not mentioned in the documentation should generally b
### Added

* Added support for Django 3.2.
* Added support for tags in OAS schema

### Fixed

Expand Down
25 changes: 20 additions & 5 deletions example/tests/snapshots/snap_test_openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@
},
"description": "not found"
}
}
},
"tags": [
"authors"
]
}"""

snapshots[
Expand Down Expand Up @@ -227,7 +230,10 @@
},
"description": "not found"
}
}
},
"tags": [
"authors"
]
}"""

snapshots[
Expand Down Expand Up @@ -411,7 +417,10 @@
},
"description": "[Conflict](https://jsonapi.org/format/#crud-creating-responses-409)"
}
}
},
"tags": [
"authors"
]
}"""

snapshots[
Expand Down Expand Up @@ -589,7 +598,10 @@
},
"description": "[Conflict]([Conflict](https://jsonapi.org/format/#crud-updating-responses-409)"
}
}
},
"tags": [
"authors"
]
}"""

snapshots[
Expand Down Expand Up @@ -652,5 +664,8 @@
},
"description": "[Resource does not exist](https://jsonapi.org/format/#crud-deleting-responses-404)"
}
}
},
"tags": [
"authors"
]
}"""
1 change: 1 addition & 0 deletions rest_framework_json_api/schemas/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ def get_operation(self, path, method):
parameters += self.get_pagination_parameters(path, method)
parameters += self.get_filter_parameters(path, method)
operation["parameters"] = parameters
operation["tags"] = self.get_tags(path, method)

# get request and response code schemas
if method == "GET":
Expand Down