How to use the @stoplight/prism-http/dist/mocker/generator/JSONSchema.generateStatic function in @stoplight/prism-http

To help you get started, we’ve selected a few @stoplight/prism-http examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wso2 / carbon-apimgt / features / apimgt / org.wso2.carbon.apimgt.publisher.feature / src / main / resources / publisher / source / Tests / Utils / MockAPIModel.js View on Github external
export default async function getMockedModel(modelName) {
    const swagger = await apiDef;
    return generateStatic(swagger.definitions[modelName]);
}