Skip to content
This repository has been archived by the owner on Nov 19, 2023. It is now read-only.

example of failing test on related_field #287

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

darduf
Copy link

@darduf darduf commented Nov 23, 2022

In relation to this issue - where schema tester was failing with an UndocumentedSchemaSectionError on our OAS definitions that uses DRF JSON:API RelationshipView

We would expect the schema tester to successfully index /api/pet/{petId}/relationships/owner/

FAILED tests/test_django_framework.py::PetsAPITests::test_create_pet_owner_relationship - openapi_tester.exceptions.UndocumentedSchemaSectionError: Error: Unsuccessfully tried to index the OpenAPI schema by `/api/pet/{petId}/relationships/{relatedField}/`. 

Undocumented route /api/pet/{petId}/relationships/{relatedField}/.

Documented routes: /api/pet/
	• /api/pet/findByStatus/
	• /api/pet/findByTags/
	• /api/pet/{petId}/
	• /api/pet/{petId}/relationships/owner/
	• /api/pet/{petId}/uploadImage/
	• /api/store/inventory/
	• /api/store/order/
	• /api/store/order/{orderId}/
	• /api/user/
	• /api/user/createWithList/
	• /api/user/login/
	• /api/user/logout/
	• /api/user/{username}/

739a3b1 replicates the issue we are seeing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant