API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  min and max length of each element in an array

    Posted Mon March 28, 2022 09:12 AM
    Hi Team,
    I am not able to set min and max length of elements in a array. I tried in v10 . but it is not working.

    IT IS WORKING FOR MAX ITEMS AND MIN ITEMS


    ex:

    COLORS:

    type: array
    items:
    type: string
    maxItems: 5
    minItems: 1
    minLength: 3
    maxLength: 6
    uniqueItems: false

    user should enter minimum 3 characters

    ------------------------------
    Padala Reddy
    ------------------------------


  • 2.  RE: min and max length of each element in an array

    Posted Mon March 28, 2022 09:31 AM
    Hi Padala,
    Please provide the context for your question.  For example, are you trying to create a user defined policy where a policy property is an array with the above properties?

    Regards,
    Steve

    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------