Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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 0 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.