Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed May 17, 2024
1 parent 1479a54 commit 30dbc4d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ export class JSONSchemaPatch {
private removeRequiredFromProperty(path: string, propertyName: string): void {
path = path.trim() === '/' ? '' : path;
const requiredPath = `${path}/required`;
// const requiredIndex = this.schema[requiredPath]?.indexOf(propertyName);
const requiredIndex = getValueAtPath(this.schema, requiredPath)?.indexOf(propertyName);
console.log(requiredIndex, requiredPath)
if (requiredIndex > -1) {
applyPatch(this.schema, [{ op: 'remove', path: `${requiredPath}/${requiredIndex}` }]);
}
Expand Down

0 comments on commit 30dbc4d

Please sign in to comment.