Skip to content

Commit 92cd827

Browse files
committed
fix formatting
Signed-off-by: Martin Pražák <martin.prazak@lutherone.com>
1 parent 1611a60 commit 92cd827

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/experimental/json-schema-discovery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exports.discoverModelDefinitions = discoverModelDefinitions;
1818
function discoverModelDefinitions(json, options) {
1919
const schemas = [];
2020
const stack = [];
21-
const result = traverse(json, { includeSymbols: false }).forEach(function(item) {
21+
const result = traverse(json, {includeSymbols: false}).forEach(function(item) {
2222
let type = typeof item;
2323

2424
if (Array.isArray(item)) {

lib/template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ JsonTemplate.prototype.compile = function() {
4040
return this.schema;
4141
}
4242
const schema = {};
43-
traverse(this.template, { includeSymbols: false }).reduce(function(schema, item) {
43+
traverse(this.template, {includeSymbols: false}).reduce(function(schema, item) {
4444
const key = this.key;
4545
const root = this.path[0];
4646
let match = null;
@@ -118,7 +118,7 @@ JsonTemplate.prototype.build = function(parameters) {
118118
this.compile();
119119

120120
function transform(obj) {
121-
return traverse(obj, { includeSymbols: false }).map(function(item) {
121+
return traverse(obj, {includeSymbols: false}).map(function(item) {
122122
const ctx = this;
123123
const templates = /\{(([\!\^]?[a-zA-Z\$_][\w\$]*)\s*(=([^:\{\}]+))?(:(\w+))?)\}/g;
124124
function build(item) {

0 commit comments

Comments
 (0)