django-ninja
django-ninja copied to clipboard
Fix Paginated Schema default(example value)
This PR resolves Issue https://github.com/vitalik/django-ninja/issues/560
- Setting default value for
paginator.items_attribute
makesitems
schemas' example value not visible - Removed default value of Output Schema
Before
After

Hi @esc5221 would be able to add test cases that covers the issue you described ?
added new test in test_openapi_schema.py
, and edited existing tests, as PagedResponse
schema is added in the test scope.
@vitalik Do tests just need fixed for this to be merged?
yes, looks like it's safe to merge if tests are working
Eagerly waiting for this PR to be merged... @esc5221 @vitalik
Merged in a separate PR
Thank you for contribution !