Closed gnuletik closed 4 years ago
Well, deeper it gets into schema objects harder it becomes to hardcode it with CustomSchemaGenerator
. I will update it but it would be good to pull request DRF or schema generation django-rest-framework-simplejwt
on this.
Should access be a boolean or a string?
In the schema, the routes handling the JWT tokens seems to have an invalid response schema.
createTokenObtainPair
In the schema, the
createTokenObtainPair
operation's response is an object with ausername
key. See: https://sandbox.wasabi.telemeta.org/timeside/api/docs/#operation/createTokenObtainPairHowever, it should be an object with a
refresh
andaccess
key.See
createTokenRefresh
In the schema, the
createTokenRefresh
operation's response is an object with arefresh
key. See: https://sandbox.wasabi.telemeta.org/timeside/api/docs/#operation/createTokenRefreshHowever, it should be an object with a
refresh
key.createTokenVerify
In the schema, the
createTokenVerify
operation's response is an object with atoken
key. See: https://sandbox.wasabi.telemeta.org/timeside/api/docs/#operation/createTokenVerifyHowever, it should be an empty object.
Would it be possible to update the schema ? Thanks :)