Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Is there a sling annotation to pass min and max value to JSON @JsonIgnoreProperties

Avatar

Level 3

Is there a sling annotation to pass min and max value to JSON @JsonIgnoreProperties?

3 Replies

Avatar

Employee Advisor

Can you give an example what you want to achieve? It's unclear to me what you mean with "min and max value" in the context of this annotation.

On the other hand @JsonIgnoreProperties is a annotation provided by the Jackson Library and is not specific to AEM.

Avatar

Level 3

Hi @Jörg_Hoh ,

 

Thanks for the reply.

For eg to set the the min and max length of an attribute in Json

mobileNumber:- min =4, max 9

Thanks

Avatar

Level 3

Hi @Jörg_Hoh ,

 

Thanks for the reply.

For eg to set the the min and max length of an attribute in Json

mobileNumber:- min =4, max 9

Thanks