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

Define how properties with tuples can be interpreted #21

Open
jonaslagoni opened this issue Nov 13, 2021 · 1 comment
Open

Define how properties with tuples can be interpreted #21

jonaslagoni opened this issue Nov 13, 2021 · 1 comment

Comments

@jonaslagoni
Copy link
Member

jonaslagoni commented Nov 13, 2021

We need to define how properties with tuples should be interpreted, such as for the following schema:

{
  "$schema": "https://json-schema.org/draft/2020-12/idl-schema",
  "name": "SomeTitle",
  "type": "object",
  "properties": {
    "ArrayProperty": {
      "type": "array",
       "prefixItems": { "type": "string" },
       "items": false
    }
  }
}

As most languages, dont support a native tuple type, should we expect an external class to be created? 🤔

@jdesrosiers
Copy link
Member

should we expect an external class to be created?

Yes. It could be either a one-off class specifically for that type or a generic tuple class(s) that can be reused for any tuples. I'd prefer the later.

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

2 participants