Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

Avatar

Level 4

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 4

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 4

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