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

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

@darduf darduf force-pushed the related-field-in-url-path branch from 947ca00 to 0fc4214 Compare November 23, 2022 22:30
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.

1 participant