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

add pattern or example to string value in a model #1776

Closed
jonathan-dev opened this issue Mar 19, 2024 · 1 comment
Closed

add pattern or example to string value in a model #1776

jonathan-dev opened this issue Mar 19, 2024 · 1 comment

Comments

@jonathan-dev
Copy link

jonathan-dev commented Mar 19, 2024

I there any possibility to add pattern or example information like this

    properties:
      releaseDate:
        type: date
        pattern: /([0-9]{4})-(?:[0-9]{2})-([0-9]{2})/
        example: "2019-05-17"

(https://stackoverflow.com/a/64035263/6938528)

And I also would be interested in setting the format mentioned here

@jonathan-dev
Copy link
Author

#379

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