RE : Adding a Validation on Data Model using Swagger | Community
Skip to main content
shamr9141343
Level 2
June 11, 2021
Solved

RE : Adding a Validation on Data Model using Swagger

  • June 11, 2021
  • 4 replies
  • 1462 views

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.
Best answer by workflowuser

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

 

4 replies

Adobe Employee
June 11, 2021

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

shamr9141343
Level 2
June 11, 2021
Like phone number and error message validation
shamr9141343
Level 2
June 11, 2021

Like phone number and error message validation

workflowuserAdobe EmployeeAccepted solution
Adobe Employee
June 11, 2021

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

 

Mayank_Gandhi
Adobe Employee
Adobe Employee
June 17, 2021

@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?