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

uuid format #58

Open
alexandruluca opened this issue Nov 26, 2019 · 1 comment
Open

uuid format #58

alexandruluca opened this issue Nov 26, 2019 · 1 comment

Comments

@alexandruluca
Copy link

alexandruluca commented Nov 26, 2019

Hi. Could you also add uuid format support?
Example:

joi
  .string()
  .guid({
    version: [
      'uuidv1'
    ]
  })
  .required();

let eventSchema = {
  startTime: eventStartTimeSchema
};

should convert to

{ type: 'object',
  properties: { startTime: { type: 'string', format: 'uuid' } },
  additionalProperties: false,
  patterns: [],
  required: [ 'startTime' ] }
@alexandruluca
Copy link
Author

alexandruluca commented Nov 26, 2019

PS: Is this still maintained? I'd be happy to create a PR if it would be merged

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