Represent SafeString as plain string on schema rendering. by hashlash · Pull Request #8429 · encode/django-rest-framework (original) (raw)

hashlash

@hashlash

@hashlash hashlash marked this pull request as ready for review

March 25, 2022 02:15

@hashlash

I tried running tox -e docs on branch master, and it also failed (with the same error). So the problem shouldn't be from the changes in this PR.

Should we wait for the fix, or can we merge it first?

@hashlash

@hashlash

@hashlash

The error should be fixed in #8433.

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@hashlash

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

auvipy

Choose a reason for hiding this comment

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

I don't have much depth regarding yaml. will be waiting for more eyes into this. on a side note, can you add more relevant tests for the changes?

@hashlash

can you add more relevant tests for the changes?

@auvipy I think the test is sufficient. As long as it can render SafeString, I think it's good enough.

Or could you elaborate on what kind of test I should add?

@auvipy

I have requested review from another OpenAPI specialist

@hashlash

auvipy

tfranzel

Member

@tfranzel tfranzel left a comment • Loading

Choose a reason for hiding this comment

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

@hashlash

Oops, you're right. I just read the discussion #8453, but wasn't aware with the drf-spectacular renderer implementation. Based on the discussion, going forward, the renderer part will also be deprecated from rest_framework?

@tfranzel

@hashlash, yes. everything that does not belong to the schema interface itself will be retired and removed eventually.