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

Allow map type #316

Open
carueda opened this issue Dec 20, 2024 · 0 comments
Open

Allow map type #316

carueda opened this issue Dec 20, 2024 · 0 comments

Comments

@carueda
Copy link
Owner

carueda commented Dec 20, 2024

As an example, it could be with an object having a single entry with the special "[string]" key:

#@define
User = {
  email: string
  country: string
}

someMap : { "[string]" :  User }

In general, the value for the map type is any type supported or defined in the schema.

Originally posted in #220

carueda added a commit that referenced this issue Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant