Skip to content

Conversation

arttuperala
Copy link
Contributor

Description of the Change

SerializerMethodResourceRelatedField(many=True) (ManySerializerMethodResourceRelatedField) fields would be documented in the OpenAPI schema with "#/components/schemas/reltoone" reference instead of "#/components/schemas/reltomany" reference.

Checklist

  • PR only contains one change (considered splitting up PR)
  • unit-test added
  • documentation updated
  • CHANGELOG.md updated (only for user relevant changes)
  • author name in AUTHORS

Copy link
Member

@sliverc sliverc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Nice catch. Merging.

@sliverc sliverc merged commit 71508ef into django-json-api:main Jun 28, 2023
@arttuperala arttuperala deleted the serializer-method-field-schema branch June 28, 2023 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants