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

Using schema to do a client-side row validate #160

Open
halfcrazy opened this issue Jun 14, 2021 · 4 comments
Open

Using schema to do a client-side row validate #160

halfcrazy opened this issue Jun 14, 2021 · 4 comments
Labels

Comments

@halfcrazy
Copy link
Contributor

No description provided.

@amorenoz
Copy link
Collaborator

Can you provide more details please?

@halfcrazy
Copy link
Contributor Author

halfcrazy commented Jun 15, 2021

Can you provide more details please?

For example we have a flood_vlans field and we should validate the int in the range 0-4095 and contains at most 4096 items for update and create operation.

{
       "flood_vlans": {
         "type": {"key": {"type": "integer",
                          "minInteger": 0,
                          "maxInteger": 4095},
                  "min": 0, "max": 4096}}
}

@amorenoz
Copy link
Collaborator

Yes, we are missing the following validations:

  • map/set min/max
  • int/float/string min/max
  • enum range

On new Row and Mutation

@halfcrazy
Copy link
Contributor Author

Yes, we are missing the following validations:

  • map/set min/max
  • int/float/string min/max
  • enum range

On new Row and Mutation

and UUID

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

No branches or pull requests

3 participants