Skip to content

Does JSONSchema support assigning a function to a property? #65

Answered by SquareByte
reselbob asked this question in Q&A
Discussion options

You must be logged in to vote

As (JavaScript) functions are not part of the JSON specification, it would be out of scope for JSONSchema.

You can of course define your own schema or your own vocabulary along the lines of what you example code shows.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Relequestual
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #64 on October 07, 2021 12:53.