How do I create a Map<String, Integer> in Json Schema #651
Answered
by
jdesrosiers
mathan-mohan91
asked this question in
Q&A
-
|
Hey all, Tried the below but it doesn't to work as it's not validating against the enum values. Tested with below Json and it doesn't work. |
Beta Was this translation helpful? Give feedback.
Answered by
jdesrosiers
Mar 1, 2024
Replies: 1 comment 2 replies
-
|
The are a few approaches. I'd recommend this one. {
"propertyNames": {
"enum": ["En_515"]
},
"patternProperties": {
"": { "type": "integer" }
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
mathan-mohan91
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The are a few approaches. I'd recommend this one.
{ "propertyNames": { "enum": ["En_515"] }, "patternProperties": { "": { "type": "integer" } } }