Skip to content

Anonymous schema #12

@moll

Description

@moll

Hey,

When I create a simple anonymous schema (without an explicit "id"), I've got to call its validate function with a fake "0" as the schema name. Could this implementation detail be hidden to just allow calling the function with an object and without a name?

var validate = Themis.validator(schema)
validate({}, "0")

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions