Skip to content

Commit

Permalink
fix: accept overlapping schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala committed Mar 18, 2022
1 parent f5c811f commit 82fe231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Item/Item.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const itemSchema = Object.freeze({
created_at: { type: 'string' },
updated_at: { type: 'string' },
type: { enum: Object.values(ItemType) },
data: { type: 'object', oneOf: [wearableSchema, emoteSchema] },
data: { type: 'object', anyOf: [wearableSchema, emoteSchema] },
metrics: metricsSchema,
contents: {
type: 'object',
Expand Down

0 comments on commit 82fe231

Please sign in to comment.