This directory is designed to house various implementations of the Postman collection schema. Each implementation should be a subdirectory named with the language the implementation is written in.
- The Java implementation was written by Andrew DeCarlo (andrew.decarlo@mtna.us) of MTNA and uses the jsonschema2pojo maven plugin to generate the POJO's from the Postman Collection Schema. Where the schema specifies that a property can be
oneOfa complete object or a string, handwritten interfaces are used to overcome this obstacle. An empty interface is defined with two implementations, the full object and the string. Custom (de)serializers are then used to read and write these objects with Jackson. All of the (de)serializers are registered in thePostmanModulewhich can be used manually with andObjectMapperor through the use ofObjectMapper.findAndRegisterModules().