Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: emotes #453

Merged
merged 2 commits into from
Mar 21, 2022
Merged

feat: emotes #453

merged 2 commits into from
Mar 21, 2022

Conversation

cazala
Copy link
Member

@cazala cazala commented Mar 18, 2022

Adds support for Emote schemas

@@ -31,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] },
data: { type: 'object', anyOf: [wearableSchema, emoteSchema] },
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed oneOf to anyOf otherwise lots of tests fail, because some of the data used on test cases are both valid wearable AND emote schemas, and oneOf throws if there's more than 1 schema passing. anyOf allows both schemas to pass.

@coveralls
Copy link

coveralls commented Mar 18, 2022

Pull Request Test Coverage Report for Build 2006533369

  • 7 of 7 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 68.317%

Totals Coverage Status
Change from base Build 2006500397: 0.06%
Covered Lines: 2343
Relevant Lines: 3280

💛 - Coveralls

@cazala cazala merged commit 1247c29 into master Mar 21, 2022
@cazala cazala deleted the feat/emotes branch March 21, 2022 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants