Last active
December 23, 2020 14:15
-
-
Save rzymek/57949ba68bce90d65f7e318f9e239a1f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"User": { | |
"type": "object", | |
"required": ["email", "roles"], | |
"properties": { | |
"email": { | |
"type": "string" | |
}, | |
"firstName": { | |
"type": "string" | |
}, | |
"lastName": { | |
"type": "string", | |
"description": "User's surname" | |
}, | |
"roles": { | |
"type": "array", | |
"items": { | |
"type": "string", | |
"enum": ["USER","ADMIN"] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment