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.

 View Only
  • 1.  JSON validation error message

    Posted Wed April 23, 2025 09:41 AM
    Edited by Shah Wajahat Thu April 24, 2025 04:59 AM

    Dear Team,

    When validation is failed using validation policy it give the default message

    "temporary::675: [JSV0005] Invalid string: the minimum length must be at least 1 (got only 0)."

    it does not show the field name. 
    Is there any way to show the exact field name?
    Thank you



    ------------------------------
    Shah Wajahat
    ------------------------------



  • 2.  RE: JSON validation error message

    Posted Sat April 26, 2025 08:24 AM

    Hi Shah,
    The missing field name in the JSON validation messages has been a long standing issue that will require a request for enhancement.  One has been opened for this, see https://ideas.ibm.com/ideas/APICONN-I-777 and I wouldn't be surprised if there were others.  Since this one is in state "Future Consideration" I'd suggest you vote for it and comment on your need for it as well.

    I'm still retired, but couldn't resist answering this one since it has come up so many times.

    Best Regards,
    Steve



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



  • 3.  RE: JSON validation error message

    Posted Thu May 01, 2025 04:27 AM

    Thankyou Steve linn. You response is too helpful for me. Most of your response is solved my issue.

    I am very thankful to you



    ------------------------------
    Shah Wajahat
    ------------------------------