Skip to content

Is required keyword reserved for requests only? #3778

Closed Answered by handrews
Zahak asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you would put phone_number (or however you spell the field) in the schema's required keyword, but leave the work_number field out. Which is exactly what you would do for requests. The Schema Object doesn't "know" whether it's a request or response or parameter or header or whatever - it's just a structural description.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Zahak
Comment options

@handrews
Comment options

Answer selected by Zahak
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants