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

Constraint::reflect does not expose .underlying #319

Open
cdaringe opened this issue Jan 11, 2023 · 0 comments
Open

Constraint::reflect does not expose .underlying #319

cdaringe opened this issue Jan 11, 2023 · 0 comments

Comments

@cdaringe
Copy link

cdaringe commented Jan 11, 2023

problem

reflect is used to introspect inner values, such as Tuple::components or Union::alternatives, however underlying is not public for Constraint.

For reference, I have to cast to access underlying: https://github.com/cdaringe/runtypes-to-jsonschema/blob/f14e0f27407b32468467531e9d98da885d663fbf/index.ts#L66

motivation

i'm authoring runtypes-to-jsonschema, and hit a roadblock with the Constraint type

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