Every line of 'json schema array' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
349 setArrayItems(schema: ISchema) { 350 this.items = new Schema(schema, this) 351 return this.items 352 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code
86 schema(_schema) { 87 this._schema = _schema; 88 return this; 89 }
169 function checkSchemaTypeIsArray(schema: any, type: string): boolean { 170 return schema && Array.isArray(schema[type]); 171 }
281 export function isArrayTypeSchema(schema: Schema): schema is ArrayTypeSchema { 282 return [Type.ARRAY].includes(schema.type) 283 }
163 function isArray (schema) { 164 return schema._type === 'array'; 165 }
95 function testStringArraySchema() { 96 refresolve(stringArraySchema); 97 var meta = convertSchema(stringArraySchema); 98 doh.assertEqual("array", meta.attributes[0].type); 99 doh.assertEqual("string", meta.attributes[0].element.type); 100 },