Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON-schema: slow regex checks for enum with maxLength #108

Open
mmoskal opened this issue Jan 20, 2025 · 0 comments
Open

JSON-schema: slow regex checks for enum with maxLength #108

mmoskal opened this issue Jan 20, 2025 · 0 comments

Comments

@mmoskal
Copy link
Collaborator

mmoskal commented Jan 20, 2025

testcase Github_hard---o64556.json, it seems the problem is fields like this:

   "StudentLOTE": {
        "id": "http://naplan.edu.au/StudentLOTE",
        "type": "string",
        "title": "StudentLOTE schema.",
        "maxLength": 4,
        "enum": [
          "0000",
          "0001",
          "0002",
          "0003",
          "0004",
// ...
          "9702",
          "9799"
        ],
        "description": "Description",
        "name": "StudentLOTE"
      },

in particular, checking if 0000|0001|... & .{,4} is non-empty.

This may need to be fixed in derivre.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant