Replies: 2 comments
-
To allow any type, you can simply not specify a type. So for an object whose properties may be any type, a schema of |
Beta Was this translation helpful? Give feedback.
0 replies
-
@WasiqB You are looking for this maybe as per the example data:
Having array of type will automatically mean any of those mentioned |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a JSON file where there is one property called
capabilities
, which is a Map with String keys and it's value can be of any type, whetherString
,Number
orBoolean
.Can anyone help me, how I can define it's schema correctly.
Example data:
I am trying to add my JSON files schema to the SchemaStore repository, but since I am not able to define correct schema for this property, I am blocked.
I tried the following schema for
capabilities
:But this schema is failing the tests by giving the following message:
Any help would be highly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions