Skip to content

Incorrect README validation example #2127

Closed
@SourceBoy

Description

@SourceBoy

Context

  • node version: 8+
  • joi version: 16
  • environment (node, browser): All
  • used with (hapi, standalone, ...): Standalone
  • any other relevant information: See screenshot below

What are you trying to achieve or the steps to reproduce ?

await schema.validate({ username: 'abc', birth_year: 1994 }); // This should be validateAsync()

Which result you had ?

TypeError: schema.validate(...).then is not a function

What did you expect ?

.value

Screenshot:
screenshot

Activity

self-assigned this
on Sep 18, 2019
hueniverse

hueniverse commented on Sep 18, 2019

@hueniverse
Contributor

Thanks!

locked as resolved and limited conversation to collaborators on Mar 17, 2020
added a commit that references this issue on Feb 10, 2025
285b659
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @hueniverse@SourceBoy

      Issue actions

        Incorrect README validation example · Issue #2127 · hapijs/joi