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

$dynamic* can be used to represent generic types #42

Open
gregsdennis opened this issue Sep 1, 2022 · 2 comments
Open

$dynamic* can be used to represent generic types #42

gregsdennis opened this issue Sep 1, 2022 · 2 comments

Comments

@gregsdennis
Copy link
Member

I wrote a blog post about how to do it.

https://json-schema.org/blog/posts/dynamicref-and-generics

@jdesrosiers
Copy link
Member

While this is true, I want to point out that dynamic* can't always be mapped to a generic type. I realized this when trying to write TypeScript types for the meta-schemas.

@gregsdennis
Copy link
Member Author

I don't think it works that direction, no.

Generics can be represented with $dynamic*, but not every use of $dynamic* represents a generic.

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