Skip to content

How do I create a Map<String, Integer> in Json Schema #651

Answered by jdesrosiers
mathan-mohan91 asked this question in Q&A
Discussion options

You must be logged in to vote

The are a few approaches. I'd recommend this one.

{
  "propertyNames": {
    "enum": ["En_515"]
  },
  "patternProperties": {
    "": { "type": "integer" }
  }
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mathan-mohan91
Comment options

@mathan-mohan91
Comment options

Answer selected by mathan-mohan91
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