8000 Error out when no key in JGET · Issue #9 · atlas-engineer/njson · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
< 8000 script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/vendors-node_modules_gsap_index_js-028cb2a18f5a.js" defer="defer">
Error out when no key in JGET #9
Open
@aartaka

Description

@aartaka

Right now no-key error only happens in jget*, but it's intended to happen in the regular jget starting from the next major release. The benefit is: malformed JSON is easier to spot and fix, while jbind patterns are behaving in a more correct way in regards to validation.

Yes, panicking more often might be annoying, but this library is intended to be interactive, so it's better to error than not—to be honest to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backwards-incompatibleBackwards-incompatible changes for next major release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0