Skip to content

Commit aaa2269

Browse files
authored
fix: feature/protovalidate support (#126)
1 parent 7883bb0 commit aaa2269

File tree

4 files changed

+579
-19
lines changed

4 files changed

+579
-19
lines changed

src/protoj2jsonSchema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class Proto2JsonSchema {
302302

303303
for (const fieldName of oneOfItem.oneof) {
304304
const field = this.compileField(item.fields[fieldName], item, stack.slice());
305-
obj['x-oneof-item'] = fieldName;
305+
field['x-oneof-item'] = fieldName;
306306

307307
oneOf.push(field);
308308
}

0 commit comments

Comments
 (0)