Skip to content

Commit

Permalink
add id to pseudoschema in decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
idelvall committed Jan 17, 2017
1 parent 0d5338a commit a6d151b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions dist/js/brutusin-json-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,11 +553,13 @@ if (typeof brutusin === "undefined") {
var td1 = document.createElement("td");
td1.className = "prop-name";
var propId = id + "." + prop;
var propSchema = getSchema(getSchemaId(propId));
var td2 = document.createElement("td");
td2.className = "prop-value";
appendChild(tbody, tr, s);
appendChild(tr, td1, s);
appendChild(tr, td2, s);

appendChild(tbody, tr, propSchema);
appendChild(tr, td1, propSchema);
appendChild(tr, td2, propSchema);
var pp = createStaticPropertyProvider(prop);
var propInitialValue = null;
if (value) {
Expand Down Expand Up @@ -900,6 +902,7 @@ if (typeof brutusin === "undefined") {
}
return pseudoSchema;
}

function getDefinition(path) {
var parts = path.split('/');
var def = root;
Expand All @@ -914,6 +917,7 @@ if (typeof brutusin === "undefined") {

function populateSchemaMap(name, schema) {
var pseudoSchema = createPseudoSchema(schema);
pseudoSchema["$id"] = name;
schemaMap[name] = pseudoSchema;

if (schema.hasOwnProperty("oneOf")) {
Expand Down
Loading

0 comments on commit a6d151b

Please sign in to comment.