Skip to content

Commit

Permalink
Fixes to validator to more correctly check JSON types
Browse files Browse the repository at this point in the history
  • Loading branch information
bstewartlg committed Jun 20, 2023
1 parent 00f4cc4 commit 5e1f2b9
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
Original file line number Diff line number Diff line change
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.

Loading

0 comments on commit 5e1f2b9

Please sign in to comment.