Skip to content
New issue

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

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

Already on GitHub? # to your account

feat: validation #4

Merged
merged 2 commits into from
Dec 20, 2023
Merged

feat: validation #4

merged 2 commits into from
Dec 20, 2023

Conversation

mizx
Copy link
Collaborator

@mizx mizx commented Dec 20, 2023

Testing

unrecognized keys:

  errors: [
    {
      code: 'unrecognized_keys',
      keys: [Array],
      path: [],
      message: "Unrecognized key(s) in object: 'yeet'"
    }
  ]

invalid model:

issues: [
    {
      received: '2024 Classic YEET',
      code: 'invalid_enum_value',
      options: [Array],
      path: [Array],
      message: "Invalid enum value. Expected '2024 Beast' | '2024 Mystic' | '2024 Stealth' | '2024 Classic' | '2023 Beast' | '2023 Stealth' | '2023 Classic' | '2023 LT' | '2022 Beast' | '2022 Stealth' | '2022 Classic' | '2022 LT' | '2021 Beast' | '2021 Stealth' | '2021 Classic' | '2020 MODE', received '2024 Classic YEET'"
    }
  ]

@mizx mizx requested a review from EvanCultivate December 20, 2023 18:03
@mizx mizx enabled auto-merge (squash) December 20, 2023 22:16
Copy link

@EvanCultivate EvanCultivate left a comment

Choose a reason for hiding this comment

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

lgtm

@mizx mizx merged commit 6f6c248 into main Dec 20, 2023
@mizx mizx deleted the feat-validation branch December 20, 2023 22:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants