Skip to content

Commit c001fdf

Browse files
committed
revert all of index in name
1 parent 59d6b51 commit c001fdf

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/runtime/validator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,9 @@ function validateAndParseValueAgainstSchema(
623623
// AllOf
624624
if (currentSchema.allOf) {
625625
// try to validate every allOf and merge their results
626-
const schemasValues = currentSchema.allOf.map(schema =>
626+
const schemasValues = currentSchema.allOf.map((schema, i) =>
627627
validateAndParseValueAgainstSchema(
628-
`${name}`,
628+
`${name}.${i}`,
629629
value,
630630
schema,
631631
schemas,

tests/unit/openapi-record-index-signature.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ test('Should generate additionalProperties for types with specific keys and inde
7171
assert.strictEqual(deltaSchema.type, 'object')
7272
// Should have specific properties
7373
assert.ok(deltaSchema.properties)
74-
console.log(deltaSchema.properties)
7574
assert.strictEqual(deltaSchema.additionalProperties, false)
7675
assert.strictEqual(deltaSchema.properties.oxygen.type, 'number')
7776

0 commit comments

Comments
 (0)