Skip to content

Instantly share code, notes, and snippets.

@ksuarz

ksuarz/schema.js Secret

Created September 21, 2017 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksuarz/d5caa6fc8a9fb003e22cf92eb78596a4 to your computer and use it in GitHub Desktop.
Save ksuarz/d5caa6fc8a9fb003e22cf92eb78596a4 to your computer and use it in GitHub Desktop.
E2BIG
validator = {
$jsonSchema: {
properties: {
a: {
type: "object",
properties: {
b: {
type: "object",
properties: {
c: {
type: "object",
properties: {
d: {
type: "object",
properties: {
e: {
type: "object",
properties: {
f: {
type: "object",
properties: {
g: {
type: "object",
properties: {
h: {
type: "object",
properties: {
i: {
type: "object",
properties: {
j: {
type: "object",
properties: {
k: {
type: "object",
properties: {
l: {
type: "object",
properties: {
m: {
type: "object",
properties: {
n: {
type: "object",
properties: {
o: {
type: "object",
properties: {
p: {
type: "object",
properties: {
q: {
type: "object",
properties: {
r: {
type: "object",
properties: {
s: {
type: "object",
properties: {
t: {
type: "object",
properties: {
u: {
type: "object",
properties: {
v: {
type: "object",
properties: {
w: {
type: "object",
properties: {
x: {
type: "object",
properties: {
y: {
type: "object",
properties: {
z: {
type: "object",
properties: {
aa: {
type: "object",
properties: {
ab: {
type: "object",
properties: {
ac: {
type: "object",
properties: {
ad: {
type: "object",
properties: {
sku: {type: "number"},
price: {
type: "number",
minimum: 0,
maximum: 10.0
},
country: {enum: ["fr", "es"]},
stock: {
type: "number",
minimum: 0,
multipleOf: 1
},
name: {
type: "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment