feat: delete a user
This commit is contained in:
8
server/modules/rendering/openapi-core/definition.yml
Normal file
8
server/modules/rendering/openapi-core/definition.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
key: openapiCore
|
||||
title: Core
|
||||
description: Basic OpenAPI Parser
|
||||
author: requarks.io
|
||||
input: openapi
|
||||
output: html
|
||||
icon: mdi-api
|
||||
props: {}
|
14
server/modules/rendering/openapi-core/renderer.js
Normal file
14
server/modules/rendering/openapi-core/renderer.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const _ = require('lodash')
|
||||
|
||||
module.exports = {
|
||||
async render() {
|
||||
let output = this.input
|
||||
|
||||
for (let child of this.children) {
|
||||
const renderer = require(`../${_.kebabCase(child.key)}/renderer.js`)
|
||||
output = await renderer.init(output, child.config)
|
||||
}
|
||||
|
||||
return output
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user