AnsweredAssumed Answered

Education question

Question asked by sdetweil2 on Jul 28, 2015
Latest reply on Aug 7, 2015 by sdetweil2

Which part of the training covers how to address optional parameters in and out, particularly with JSON based bodies.. (again this is manual service construction as there is nothing to record), the RR pairs  re constantly changing structure due to api schema changes.)


If I code an element in the output xml (to be converted by the JSON Data Protocol filter), and the data( property substitution)  is not present, the filter fails.


there must be some cool way to deal with all the possible variations without having an exact pattern  I would end up with 1000's of patterns..


I am imagining to create a pattern for maximum response, the swagger spec documents those that are optional, and for those that are optional, replacement occurs, and if not that element is dropped from the output.