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

Error handling of text elements #1

Open
jplomas opened this issue Sep 19, 2024 · 1 comment
Open

Error handling of text elements #1

jplomas opened this issue Sep 19, 2024 · 1 comment

Comments

@jplomas
Copy link
Collaborator

jplomas commented Sep 19, 2024

We need error checking (and tests) for text elements which do not match correct format, e.g. nodal/Nodal

@jplomas
Copy link
Collaborator Author

jplomas commented Sep 19, 2024

probably best to include this at schema level, as in:

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "required": ["results"],
  "additionalProperties": false,
  "properties": {
    "results": {
      "type": "object",
      "properties": {
        "result": {
          "type": "string",
          "enum": ["1", "2", "3", "4"]
        }
      }
    }
  }
}

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