I would suggest having a look at Microcks (https://microcks.io) as a way to produce mocks from OpenAPI contracts, Postman collection or other assets...
Full disclosure : I am the founder of the project ;-)
Full disclosure : I am the founder of the project ;-)
That's a pretty heavyweight dependency list (and I'll leave my snide remarks about Mongo out of this)
Does your usecase involve such high security for your mocks?