Skip to content

Negative integers not supported #1

Closed
@shauns

Description

@shauns

Negative integers are not validated correctly:

select validate_json_schema('{"type": "integer"}', '-103948');
 validate_json_schema
----------------------
 f
(1 row)

I think the answer is to look at the type check where data is coerced to text and compared to a regex -- I'm not sure what's most performant, but maybe there's a built-in function to fulfill this check.

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