Skip to content

Instantly share code, notes, and snippets.

@dougrich
dougrich / index.js
Last active December 5, 2017 20:10
Bug reproduction for fast-json-stringify
// Node version: v8.0.0
// fast-json-stringify-version version: 0.15.1
// Windows 10, 64 bit
const fastJson = require('fast-json-stringify');
const goodSchema = {
title: 'Example Schema',
type: 'object',
properties: {
@dougrich
dougrich / schema.json
Created December 5, 2017 16:56
Demonstrating shared schemas in AJV and fast-json-stringify
{
"$schema": "http://json-schema.org/schema#",
"$id": "http://example.com/defs.json",
"definitions": {
"meta": {
"type": "object",
"additionalProperties": false,
"properties": {
"name": { "type": "string", "maxLength": 128 },
"description": { "type": "string", "maxLength": 2048 }