Skip to content

Commit

Permalink
Merge pull request #70 from lantanagroup/validator
Browse files Browse the repository at this point in the history
Fixes to validator to more correctly check JSON types
  • Loading branch information
seanmcilvenna committed Jun 20, 2023
2 parents 00f4cc4 + 5e1f2b9 commit d54125c
Show file tree
Hide file tree
Showing 25 changed files with 221 additions and 107 deletions.
6 changes: 3 additions & 3 deletions convertToJs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion convertToJs.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions convertToJs.ts
Expand Up @@ -165,7 +165,7 @@ export class ConvertToJs {
const xmlElements = [];

if (xmlObj.elements) {
for (let element of xmlObj.elements) {
for (const element of xmlObj.elements) {
if (element.name === property._name) {
xmlElements.push(element);
}
Expand All @@ -176,7 +176,7 @@ export class ConvertToJs {

if (xmlObj.attributes) {
const attributeKeys = Object.keys(xmlObj.attributes);
for (let attributeKey of attributeKeys) {
for (const attributeKey of attributeKeys) {
if (attributeKey === property._name) {
xmlAttributes.push({
name: attributeKey,
Expand Down Expand Up @@ -329,7 +329,7 @@ export class ConvertToJs {
case 'BackboneElement':
const newValue = {};

for (let x in property._properties) {
for (const x in property._properties) {
const nextProperty = property._properties[x];
this.propertyToJS(value, newValue, nextProperty, surroundDecimalsWith);
}
Expand Down
12 changes: 6 additions & 6 deletions convertToXml.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion convertToXml.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d54125c

Please sign in to comment.