Is there a sling annotation to pass min and max value to JSON @JsonIgnoreProperties | Community
Skip to main content
Level 4
August 29, 2022

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

  • August 29, 2022
  • 2 replies
  • 728 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

joerghoh
Adobe Employee
Adobe Employee
August 29, 2022

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.

Level 4
August 30, 2022

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

Level 4
August 30, 2022

Hi @joerghoh ,

 

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