MCPcopy Create free account
hub / github.com/TechniqueSoftware/react-json-schema / parseSubSchemas

Method parseSubSchemas

lib/ReactJsonSchema.js:18–28  ·  view source on GitHub ↗
(subSchemas = [])

Source from the content-addressed store, hash-verified

16 }
17
18 parseSubSchemas(subSchemas = []) {
19 const Components = [];
20 let index = 0;
21 Object.keys(subSchemas).forEach((key) => {
22 const subSchema = subSchemas[key];
23 subSchema.key = typeof subSchema.key !== 'undefined' ? subSchema.key : index;
24 Components.push(this.parseSchema(subSchema));
25 index += 1;
26 });
27 return Components;
28 }
29
30 createComponent(schema) {
31 // eslint-disable-next-line no-unused-vars

Callers 2

parseSchemaMethod · 0.95

Calls 1

parseSchemaMethod · 0.95

Tested by

no test coverage detected