DataPower

Expand all | Collapse all

JSON validation

  • 1.  JSON validation

    Posted Mon August 30, 2021 03:52 AM
    Hi Guys,

    i am trying to do a json validation using jsv file that i have created a complex schema from but the validation is going ok even if the values are to be rejected.Kindly can someone advise what is the issue.The jsv file i have validated and its successfully parsing

    ------------------------------
    Kenneth Muragu
    ------------------------------


  • 2.  RE: JSON validation

    Posted Wed September 08, 2021 05:39 PM
    Hi Kenneth,

    Could you provide a sample of an input you expect to fail that succeeds, as well as the schema, and clarify what part you expect to fail?

    Without seeing the schema and the input its hard to tell what is going on here.

    ------------------------------
    CHRIS SLOAN
    ------------------------------



  • 3.  RE: JSON validation

    Posted Thu September 09, 2021 02:40 AM
      |   view attached
    Hi Chris,

    Thanks for the reply i resulted in splitting the schema to a simple one and creating a gateway script to be able to validate the schema against the different requests.but i want to use one file can you help me achieve this by using the different ids to select the schema


    ------------------------------
    Kenneth Muragu
    ------------------------------

    Attachment(s)

    zip
    schema.zip   3 KB 1 version


  • 4.  RE: JSON validation

    Posted 11 days ago
    Please create a support ticket, and provide a simple service exort as well a JSON input that you think does not get validated correctly.

    ------------------------------
    Hermann Stamm-Wilbrandt
    Compiler Level 3 support & Fixpack team lead
    IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
    https://stamm-wilbrandt.de/en/blog/
    ------------------------------