RE : Adding a Validation on Data Model using Swagger | Community
Skip to main content
shamr9141343
Level 2
Jun 11, 2021 1:24 PM UTC
Solved

RE : Adding a Validation on Data Model using Swagger

Hi ,

 

     I am trying to check if there is a possibility of adding a validation on to the Form data model using swagger file and also if not is there any thing that can be done to use the drag and drop functionality of the FDM with validation on .

 

Thank You,

Sham.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
workflowuserAccepted solution
Employee
Jun 11, 2021 3:21 PM UTC

I don’t think  swagger spec does not allow you to provide validation rules so you will have to do the validation using rule editor

 

5 replies

Mayank_Gandhi
Employee
Jun 17, 2021 11:24 AM UTC

@shamr9141343 Swagger does support keywords for length, datatype, so if the requirement is to put a check via swagger in a similar way I doubt you will face any challenge.

https://swagger.io/docs/specification/data-models/data-types/

 

What's the use case?

Translate
workflowuserAccepted solution
Employee
Jun 11, 2021 3:21 PM UTC

I don’t think  swagger spec does not allow you to provide validation rules so you will have to do the validation using rule editor

 

Translate
shamr9141343
Level 2
Jun 11, 2021 2:19 PM UTC

Like phone number and error message validation

Translate
Employee
Jun 11, 2021 2:15 PM UTC

what kind of validation are you looking for? can you please provide us more details on the use case?

Translate
shamr9141343
Level 2
Jun 11, 2021 2:22 PM UTC
Like phone number and error message validation
Translate