Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
a-plus-forms-json-validator
Advanced tools
This a plugin for the A+ forms that enables JSON schemas based forms validation.
npm install a-plus-forms
npm install a-plus-forms-json-validator
import { Form, ValidatorProvider, EmailInput, PasswordInput } from 'a-plus-forms';
import Validator from 'a-plus-forms-json-validator';
const schema = {
type: 'object',
properties: {
email: { type: 'string', format: 'email' },
password: { type: 'string' }
},
required: ['email', 'password']
};
const SignInForm = ({ onSubmit }) =>
<ValidatorProvider validator={Validator}>
<Form schema={schema} onSubmit={onSubmit}>
<EmailInput name="username" label="Username" />
<PasswordInput name="password" label="Password" />
</Form>
</ValidatorProvider>;
The ValidatorProvider
doesn't have to be right next to the Form
. The best
practice is to place it next to your redux store provider or such, at the app
root scope level.
All code in this repo is released under the terms of the MIT license. Copyright (C) 2017 Niklay Nemshilov
FAQs
JSON Schema validator
The npm package a-plus-forms-json-validator receives a total of 4 weekly downloads. As such, a-plus-forms-json-validator popularity was classified as not popular.
We found that a-plus-forms-json-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.