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

feat: expose PropertiesSchema and RequiredMembers types #1472

Merged
merged 1 commit into from Mar 2, 2021

Conversation

t7yang
Copy link
Contributor

@t7yang t7yang commented Mar 2, 2021

What issue does this pull request resolve?
If we have a properties schema or required members that share across multiple schema then we would like to declare it separately. So, we need PropertiesSchema and RequiredMembers types to help us declare value.

What changes did you make?
Export type PropertiesSchema and type RequiredMembers.

Is there anything that requires more attention while reviewing?
No.

@epoberezkin
Copy link
Member

You may be better off with having them in definitions (but you still can type-check them using these types) - I will merge it.

@erikbrinkman added a very advanced type for JTDSchemaType with discriminated union support do check it out.

@epoberezkin epoberezkin merged commit dd274cf into ajv-validator:master Mar 2, 2021
@t7yang t7yang deleted the expose-types branch March 2, 2021 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants