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

Enhanced schema descriptions #334

Closed
4 tasks done
alek-mongodb opened this issue May 1, 2018 · 2 comments
Closed
4 tasks done

Enhanced schema descriptions #334

alek-mongodb opened this issue May 1, 2018 · 2 comments

Comments

@alek-mongodb
Copy link
Contributor

alek-mongodb commented May 1, 2018

Extend existing request/response Body section of aglio docs by specifying:

  • integer range
  • default values
  • string format value
  • string pattern
@alek-mongodb
Copy link
Contributor Author

alek-mongodb commented May 1, 2018

Ticks first three boxes: b5fbbec

Example:

{
  foo: BOOLEAN (default: true),
  barDate: STRING (date-time),
  baz: INTEGER[1..42]
}

@alek-mongodb
Copy link
Contributor Author

Ticks the string pattern box: eb20f16
Example:

{
    time: STRING (pattern: '^([01]\d|2[0-3]):?([0-5]\d)$')
}

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

2 participants