Class ExpectationExportSerializer


  • public class ExpectationExportSerializer
    extends Object
    Exports a list of Expectations into third-party tooling formats — OpenAPI 3 spec, Postman v2.1 collection, or a Bruno collection ZIP. Used by the dashboard's Library / Export sub-tab and by direct API consumers of PUT /mockserver/retrieve?type=ACTIVE_EXPECTATIONS&format=....

    The conversions are deliberately pragmatic: positive-string matchers round-trip cleanly, while NottableString negation, regex bodies, callbacks, forwards, templates, and errors are exported as best-effort placeholders. Importers will not see the full MockServer matcher semantics — these formats are designed for client requests + response examples, not full mock-server expectation graphs.