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

Updated standalone documentation and add new examples #1866

Merged
merged 10 commits into from Jan 15, 2022

Conversation

rehanvdm
Copy link
Contributor

What issue does this pull request resolve?
Updates documentation for the standalone functionality, and adds examples of generating and consuming the generated validation code in both CJS and ESM formats. It also shows examples for single and multiple schemas.

Adds docs for the new ESM feature mentioned in #1523 and gives a concrete example of usage for #1831.

I tested the examples in the documentation below and have them in a separate private repo that I want to make public as soon as this new ESM feature gets released. I don't know if you maybe want to reference it? Or maybe fork it so that it lives under the ajv-validator organization and then reference to that from these docs.

What changes did you make?
Updated docs.

Is there anything that requires more attention while reviewing?
Don't think so, just possible revisions if required, let me know or go ahead and make them directly.

docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
docs/standalone.md Outdated Show resolved Hide resolved
@epoberezkin epoberezkin merged commit ec96c87 into ajv-validator:master Jan 15, 2022
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