Skip to content

Parameter only for POST #2865

Closed Answered by webron
DenisFerrero asked this question in Q&A
Jan 26, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

JSON Schema doesn't quite allow you to pick and choose which properties you want to use from a given schema definition.
You have two options:

  • split user into two schemas, where one uses allOf the other and adds the inviteCode
  • use the user schema for both, but in the case of put make it a combination of allOf and not to remove support for inviteCode

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@DenisFerrero
Comment options

Answer selected by DenisFerrero
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
3 participants
Converted from issue

This discussion was converted from issue #2864 on January 26, 2022 17:19.