HenrikHL
3 years agoFrequent Contributor
Best pattern/practice to describe a JWT token content on SwaggerHub
I have a field called envelope which is a JWT token expressed as a String.
What would be the best practice to describe the contents of this token? Has anybody tried this?
components:
schemas:
envelope:
type: string
maxLength: 1500
description: 'A JWT token'
example: 'xxxxx.yyyyy.zzzzz'
I would like to describe the payload of the token - e.g.:
{
"name": "John Doe",
"admin": true
}
I cannot find any examples of this...