Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentDidMount() {
window.editor = SwaggerEditor({
dom_id: '#swagger-editor',
layout: 'EditorLayout',
plugins: Object.values(plugins),
supportedSubmitMethods: [],
components: {},
swagger2GeneratorUrl: 'https://generator.swagger.io/api/swagger.json',
oas3GeneratorUrl: 'https://generator3.swagger.io/openapi.json',
swagger2ConverterUrl: 'https://converter.swagger.io/api/convert',
});
}
componentDidMount() {
window.editor = SwaggerEditor({
dom_id: '#swagger-editor',
layout: 'EditorLayout',
plugins: Object.values(plugins),
supportedSubmitMethods: [],
debounce: 10,
components: {},
showExtensions: false,
swagger2GeneratorUrl: 'https://generator.swagger.io/api/swagger.json',
oas3GeneratorUrl: 'https://generator3.swagger.io/openapi.json',
swagger2ConverterUrl: 'https://converter.swagger.io/api/convert',
});
}