schemy-translations-spanish

1.1.0 • Public • Published

Spanish support for Schemy

Ever needed for a spanish json validator to plug quickly into your project? This is a plugin for Schemy

Usage

Install it using npm: npm install --save schemy-translations-spanish, then extend Schemy with it:

const Schemy = require('schemy');
const SchemySpanish = require('schemy-translations-spanish');

Schemy.extend([
	SchemySpanish
]);

// That's it! Just use schemy normally
const schema = new Schemy({
	title: String
});

schema.validate({title: 1});
schema.getValidationErrors(); // => [ 'La propiedad title es de tipo number, se esperaba string' ]

/schemy-translations-spanish/

    Package Sidebar

    Install

    npm i schemy-translations-spanish

    Weekly Downloads

    0

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    4.28 kB

    Total Files

    3

    Last publish

    Collaborators

    • aeberdinelli