Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

RE : Adding a Validation on Data Model using Swagger

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Employee

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

 

View solution in original post

5 Replies

Avatar

Employee Advisor

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

Avatar

Level 2

Like phone number and error message validation

Avatar

Correct answer by
Employee

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

 

Avatar

Employee Advisor

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