Skip to content

Cannot self-validate the schema #2

@TelegramSam

Description

@TelegramSam

The spec says that the schema is self validating, but when I try using your library, I get this error:

    JSON::Schema::ValueError: dependencies is missing and it is not optional

    /Library/Ruby/Gems/1.8/gems/jsonschema-2.0.0/lib/jsonschema.rb:40:in `check_property'
    /Library/Ruby/Gems/1.8/gems/jsonschema-2.0.0/lib/jsonschema.rb:209:in `check_object'
    /Library/Ruby/Gems/1.8/gems/jsonschema-2.0.0/lib/jsonschema.rb:207:in `each'
    /Library/Ruby/Gems/1.8/gems/jsonschema-2.0.0/lib/jsonschema.rb:207:in `check_object'
    /Library/Ruby/Gems/1.8/gems/jsonschema-2.0.0/lib/jsonschema.rb:99:in `check_property'
    /Library/Ruby/Gems/1.8/gems/jsonschema-2.0.0/lib/jsonschema.rb:287:in `validate'
    /Library/Ruby/Gems/1.8/gems/jsonschema-2.0.0/lib/jsonschema.rb:298:in `validate'
    ./sqapp.rb:96:in `POST /d/schemas/add'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions