Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I input multi-language attributes? #845

Open
kochizufan opened this issue Apr 22, 2021 · 0 comments
Open

Can I input multi-language attributes? #845

kochizufan opened this issue Apr 22, 2021 · 0 comments

Comments

@kochizufan
Copy link

Hi,

I want to realize attribute like this:

If single-language data:

  "name": "Peter"

but in multi-language data:

  "name": {
    "ja": "ピーター",
    "en": "Peter"
  }

According to this topic https://stackoverflow.com/questions/47087869/how-to-represent-jsonschema-of-json-which-key-names-are-in-enum-value , multiple-language attribute is achieved in Json Schema like this:

{
  "type": "object",
  "properties": {
    "name": {
      "type": "object",
      "patternProperties": {
        "^[a-z]{2}$": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  },
  "required": [
    "name"
  ]
}

But my question is, such complicated JSON Schema is supported in this library?

If it is not supported, would you please add this as new function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant