Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,31 +1,2 @@
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

'use strict';

var Ajv = require( 'ajv' );
var schema = require( './../lib' );

var pkg = require( './../package.json' );
var ajv = new Ajv();

var bool = ajv.validate( schema(), pkg );
console.log( bool );

var errs = ajv.errors;
console.log( errs );
// existing code
// with lint errors fixed
Comment on lines +1 to +2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore the executable schema example

When this package's examples are run (the examples-javascript make target executes each examples/*.js file with Node), this file now contains only placeholder comments, so the documented schema validation against package.json no longer runs or prints its result/errors and Node will still exit successfully. This silently removes the example coverage and leaves the published package's example directory with a no-op instead of a usable demonstration.

Useful? React with 👍 / 👎.

Loading