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

Improve documentation for field validation regex in API #520

Open
jean-luc opened this issue Dec 3, 2018 · 0 comments
Open

Improve documentation for field validation regex in API #520

jean-luc opened this issue Dec 3, 2018 · 0 comments

Comments

@jean-luc
Copy link

jean-luc commented Dec 3, 2018

A couple of things I noticed when referring to the documentation for field validation regex in API https://docs.dadi.cloud/api/6.1

1. Missing quotes in regex example

In the documentation for Collection Fields https://docs.dadi.cloud/api/6.1#collection-fields the table shows an example for validation.regex. This is missing quotes around the regex pattern value.

{ "pattern": /[A-Z]*/ } should be { "pattern": "/[A-Z]*/" }

2. Missing documentation for flags property

There is no documentation for the validation.regex.flags property.

  "regex": {
    "pattern": "....",
    "flags": "i"
  }
}
@eduardoboucas eduardoboucas added this to the 5.0.0 milestone Jan 8, 2019
@eduardoboucas eduardoboucas removed this from the 5.0.0 milestone Oct 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants