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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom validation rules #347

Open
abdoulayesy opened this issue May 17, 2022 · 2 comments
Open

Add custom validation rules #347

abdoulayesy opened this issue May 17, 2022 · 2 comments

Comments

@abdoulayesy
Copy link

Thank you for the interesting tool. 馃憤
I would like to use it in my project but I have a lot of custom rule that I can not validate them with:

  • custom header
  • endpoint security requirements
  • model example instead of model properties example
  • ....
    Is it possible to have a possibility to plug custom rule (in options file for example) ?
    ex: if you have in options
    validateModelxxxxxx: {
    type: fieldType
    validate: boolean
    }
    if validate is true (check if all models have field xxxx and the value is instance of given type)

Have this generic behavior for header, operation and info

@JFCote
Copy link
Member

JFCote commented May 17, 2022

Hi @abdoulayesy !

Thanks for the suggestion. Right now, there is no concept of custom rules in our tool. This is a big feature that can impact existing features and it could add complexity for simple requirements. I have marked this issue as "enhancement" and if you want to offer your help to add the feature, we welcome PR!

Thanks!

@thiyagu06
Copy link

Hi @JFCote, Thanks for the tool. I created basic skeleton on how we can implement a custom rule in the existing feature. Let me know your thoughts about it.

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