npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@talend/json-schema-form-core

v1.2.7

Published

JSON-Schema and JSON-UI-Schema utilities for form generation.

Downloads

1,582

Readme

JSON Schema Form Core

Gitter Build Status

Core library for working with JSON-Schema with a UI-Schema (Form) definition that doesn't depend on a framework.

This library, through the use of its merge module, combines the schema and ui-schema into a canonical schema for use by its services and external libraries.

You DO NOT use this file in addition to Angular Schema Form, it is embedded at build into any frameworks using it.

Work-In-Progress!

There is test output that forms some super basic documentation and I intend to expand them much further to the point of almost being useful before I create a proper API and document that.

Keeping Track

After changing to Webpack 2, this library now includes a detailed version header which is passed through into Angular Schema Form and also the Bootstrap decorator bundle

/*!
 * json-schema-form-core
 * @version 1.0.0-alpha.5
 * @date Sat, 14 Jan 2017 08:08:15 GMT
 * @link https://github.com/json-schema-form/json-schema-form-core
 * @license MIT
 * Copyright (c) 2014-2017 JSON Schema Form
 */

Contributing / Plans

The main contributions we need to the core at the moment are related to both the migration of Angular Schema Form features to the core (like templates/builders) and the addition of an API for use by ASF (Angular) and RSF (React) libraries.

Please contact @Anthropic via our Gitter if you wish to get involved.

Testing it

With Angular Schema Form

There is a branch in angular-schema-form called feature/webpack-babel that integrates the core. To use it roughly follow these steps:

  • Clone angular-schema-form to a sibling directory and switch to branch feature/webpack-babel
  • npm install to install dependencies
  • npm run build to build with the core.
  • Use dist/angular-schema-form.js, now with the core from this folder. No need to also load ObjectPath since it is already included

With Mocha tests

Tests are written in mocha + chai and run trough npm test.

When the command npm run testdoc is run instead, the tests will also generate a readable markdown file test.md to document elements of the library.

Notes

  • ObjectPath is bundled with json-schema-form-core
  • angular-schema-form bundles json-schema-form-core so the user doesn't have to include it as a dependency.
  • The code for not using ObjectPath on Angular 1.2 is removed. Could maybe be fixed but I (davidlgj) strongly believe its time to drop Angular 1.2 support since it complicates validation code as well.