Files
longbridge__developers/dot-sample.js
2022-04-28 11:15:29 +08:00

177 lines
5.7 KiB
JavaScript

// export default {
// components: { schemas: { CreateOrder: [Object] } },
// api: {
// openapi: '3.0.0',
// info: {
// path: '/trade/orders/submit',
// description: '订单接口介绍描 dd 述信息',
// version: 'v1',
// title: '委托订单'
// },
// paths: { '/trade/orders/submit': [Object] },
// components: { schemas: [Object] }
// },
// options: {
// title: 'API',
// language_tabs: false,
// toc_footers: [],
// includes: [],
// search: true,
// theme: 'darkula',
// headings: 2,
// templateCallback: [Function (anonymous)],
// user_templates: './templates',
// debug: true,
// samplerErrors: Map(0) {},
// resolve: false
// },
// translations: {
// defaultTag: 'Default',
// response: 'Response',
// responseDefault: 'Default',
// responseUnknown: 'Unknown',
// schemaInline: 'Inline',
// schemaNone: 'None',
// externalDocs: 'External documentation',
// secDefNone: 'None',
// secDefScopes: 'Scopes',
// anonymous: 'anonymous',
// continued: 'continued',
// indent: '∟',
// readOnly: 'read-only',
// writeOnly: 'write-only'
// },
// tags: { section: '', endSection: '' },
// version: 'v1',
// header: {
// title: '委托订单 v1',
// language_tabs: false,
// toc_footers: [],
// includes: [],
// search: true,
// highlight_theme: 'darkula',
// headingLevel: 2
// },
// title_prefix: '-',
// templates: {
// code_csharp: [Function: anonymous],
// code_go: [Function: anonymous],
// code_http: [Function: anonymous],
// code_java: [Function: anonymous],
// code_javascript: [Function: anonymous],
// code_jquery: [Function: anonymous],
// code_nodejs: [Function: anonymous],
// code_php: [Function: anonymous],
// code_python: [Function: anonymous],
// code_ruby: [Function: anonymous],
// code_shell: [Function: anonymous],
// main: [Function: anonymous],
// operation: [Function: anonymous],
// translations: [Function: anonymous]
// },
// resources: { Default: { count: 1, methods: [Object] } },
// servers: [ { url: '//' } ],
// host: null,
// protocol: null,
// baseUrl: '//',
// operationStack: [],
// utils: {
// yaml: {
// createNode: [Function: createNode],
// defaultOptions: [Object],
// Document: [class Document extends Document],
// parse: [Function: parse],
// parseAllDocuments: [Function: parseAllDocuments],
// parseCST: [Function: parse],
// parseDocument: [Function: parseDocument],
// scalarOptions: [Object],
// stringify: [Function: stringify]
// },
// inspect: [Function: inspect] {
// custom: Symbol(nodejs.util.inspect.custom),
// colors: [Object: null prototype],
// styles: [Object: null prototype]
// },
// safejson: <ref *1> [Function: stringify] {
// default: [Circular *1],
// stable: [Function: deterministicStringify],
// stableStringify: [Function: deterministicStringify]
// },
// isPrimitive: [Function (anonymous)],
// toPrimitive: [Function: toPrimitive],
// slashes: [Function (anonymous)],
// slugify: [Function: slugify],
// getSample: [Function: getSample],
// schemaToArray: [Function: schemaToArray],
// fakeProdCons: [Function: fakeProdCons],
// getParameters: [Function: getParameters],
// getCodeSamples: [Function: getCodeSamples],
// getBodyParameterExamples: [Function: getBodyParameterExamples],
// fakeBodyParameter: [Function: fakeBodyParameter],
// mergePathParameters: [Function: mergePathParameters],
// getResponses: [Function: getResponses],
// getResponseExamples: [Function: getResponseExamples],
// getResponseHeaders: [Function: getResponseHeaders],
// getAuthenticationStr: [Function: getAuthenticationStr],
// join: [Function (anonymous)]
// },
// widdershins: {
// name: 'widdershins',
// version: '4.0.1',
// description: 'OpenAPI/ Swagger / AsyncAPI / Semoasa definition to Slate / Shins compatible markdown',
// main: 'lib/index.js',
// bin: { widdershins: './widdershins.js', testRunner: './testRunner.js' },
// directories: { doc: 'docs' },
// scripts: {
// lint: 'npx eslint *.js lib/*.js',
// shins: 'node widdershins --discovery -o ../shins/source/index.html.md defs/petstore.json',
// test: 'node $nflags node_modules/mocha/bin/_mocha'
// },
// repository: {
// type: 'git',
// url: 'git+https://github.com/Mermade/widdershins.git'
// },
// keywords: [
// 'swagger',
// 'openapi',
// 'openapi3',
// 'asyncapi',
// 'slate',
// 'shins',
// 'api',
// 'docs',
// 'documentation',
// 'semoasa'
// ],
// author: 'Mike Ralphson',
// license: 'MIT',
// bugs: { url: 'https://github.com/Mermade/widdershins/issues' },
// homepage: 'https://github.com/Mermade/widdershins#readme',
// dependencies: {
// dot: '^1.1.3',
// 'fast-safe-stringify': '^2.0.7',
// highlightjs: '^9.12.0',
// httpsnippet: '^1.19.0',
// jgexml: 'latest',
// 'markdown-it': '^10.0.0',
// 'markdown-it-emoji': '^1.4.0',
// 'node-fetch': '^2.0.0',
// 'oas-resolver': '^2.3.1',
// 'oas-schema-walker': '^1.1.3',
// 'openapi-sampler': '^1.0.0-beta.15',
// reftools: '^1.1.0',
// swagger2openapi: '^6.0.1',
// urijs: '^1.19.0',
// yaml: '^1.8.3',
// yargs: '^12.0.5'
// },
// devDependencies: {
// 'cz-conventional-changelog': '^3.0.2',
// mdv: '^1.2.1',
// mocha: '^7.1.1',
// 'node-readfiles': '^0.2.0'
// },
// config: { commitizen: [Object] }
// }
// }