You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
1 year ago
|
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[9625],{2494:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>o,contentTitle:()=>d,default:()=>x,frontMatter:()=>r,metadata:()=>l,toc:()=>t});var c=i(5893),s=i(1151);const r={id:"specificationdocumentsettings",title:"7. \u89c4\u8303\u5316\u6587\u6863\u914d\u7f6e",sidebar_label:"7. \u89c4\u8303\u5316\u6587\u6863\u914d\u7f6e"},d=void 0,l={id:"settings/specificationdocumentsettings",title:"7. \u89c4\u8303\u5316\u6587\u6863\u914d\u7f6e",description:"\u5982\u9700\u7f16\u5199\u914d\u7f6e\u7684\u65f6\u5019\u63d0\u4f9b\u667a\u80fd\u63d0\u793a\u548c\u6821\u9a8c\uff0c\u53ef\u67e5\u770b \u30102.7 JSON Schema \u4f7f\u7528\u3011",source:"@site/docs/settings/specificationdocumentsettings.mdx",sourceDirName:"settings",slug:"/settings/specificationdocumentsettings",permalink:"/docs/settings/specificationdocumentsettings",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/settings/specificationdocumentsettings.mdx",tags:[],version:"current",lastUpdatedBy:"\u767e\u5c0f\u50e7",lastUpdatedAt:1688632570,formattedLastUpdatedAt:"Jul 6, 2023",frontMatter:{id:"specificationdocumentsettings",title:"7. \u89c4\u8303\u5316\u6587\u6863\u914d\u7f6e",sidebar_label:"7. \u89c4\u8303\u5316\u6587\u6863\u914d\u7f6e"},sidebar:"settings",previous:{title:"6. \u53cb\u597d\u5f02\u5e38\u914d\u7f6e",permalink:"/docs/settings/friendlyexceptionsettings"},next:{title:"8. \u591a\u8bed\u8a00\u914d\u7f6e",permalink:"/docs/settings/localizationsettings"}},o={},t=[{value:"7.1 \u5173\u4e8e\u914d\u7f6e",id:"71-\u5173\u4e8e\u914d\u7f6e",level:2},{value:"7.2 \u914d\u7f6e\u4fe1\u606f",id:"72-\u914d\u7f6e\u4fe1\u606f",level:2},{value:"7.3 \u914d\u7f6e\u793a\u4f8b",id:"73-\u914d\u7f6e\u793a\u4f8b",level:2}];function h(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.a)(),...e.components};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)(n.admonition,{title:"\u914d\u7f6e\u667a\u80fd\u63d0\u793a\u548c\u6821\u9a8c",type:"tip",children:[(0,c.jsxs)(n.p,{children:["\u5982\u9700\u7f16\u5199\u914d\u7f6e\u7684\u65f6\u5019\u63d0\u4f9b\u667a\u80fd\u63d0\u793a\u548c\u6821\u9a8c\uff0c\u53ef\u67e5\u770b \u3010",(0,c.jsx)(n.a,{href:"../jsonschema",children:"2.7 JSON Schema \u4f7f\u7528"}),"\u3011"]}),(0,c.jsxs)(n.p,{children:["\u53ea\u9700\u8981\u5728 ",(0,c.jsx)(n.code,{children:".json"})," \u6587\u4ef6\u5934\u90e8\u6dfb\u52a0\u4e0b\u5217\u914d\u7f6e\u5373\u53ef\uff1a"]}),(0,c.jsx)(n.pre,{children:(0,c.jsx)(n.code,{className:"language-json",metastring:"showLineNumbers {2}",children:'{\r\n "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json"\r\n}\n'})})]}),"\n",(0,c.jsx)(n.h2,{id:"71-\u5173\u4e8e\u914d\u7f6e",children:"7.1 \u5173\u4e8e\u914d\u7f6e"}),"\n",(0,c.jsxs)(n.p,{children:["\u89c4\u8303\u5316\u6587\u6863\u914d\u7f6e\u6307\u7684\u662f ",(0,c.jsx)(n.code,{children:"Furion"})," \u6846\u67b6 Swagger \u6587\u6863\u914d\u7f6e\u9009\u9879\u3002"]}),"\n",(0,c.jsx)(n.h2,{id:"72-\u914d\u7f6e\u4fe1\u606f",children:"7.2 \u914d\u7f6e\u4fe1\u606f"}),"\n",(0,c.jsxs)(n.ul,{children:["\n",(0,c.jsxs)(n.li,{children:[(0,c.jsx)(n.code,{children:"SpecificationDocumentSettings"}),"\uff1a\u914d\u7f6e\u6839\u8282\u70b9","\n",(0,c.jsxs)(n.ul,{children:["\n",(0,c.jsxs)(n.li,{children:[(0,c.jsx)(n.code,{children:"DocumentTitle"}),"\uff1a\u6587\u6863\u6807\u9898\uff0c",(0,c.jsx)(n.code,{children:"string"}),"\uff0c\u9ed8\u8ba4 ",(0,c.jsx)(n.code,{children:"Specification Api Document"})]}),"\n",(0,c.jsxs)(n.li,{children:[(0,c.jsx)(n.code,{children:"DefaultGroupName"}),"\uff1a\u9ed8\u8ba4\u5206\u7ec4\u540d\uff0c",(0,c.jsx)(n.code,{children:"string"}),"\uff0c\u9ed8\u8ba4 ",(0,c.jsx)(n.code,{children:"Default"})]}),"\n",(0,c.jsxs)(n.li,{children:[(0,c.jsx)(n.code,{children:"EnableAuthorized"}),"\uff1a\u662f\u5426\u542f\u7528\u6743\u9650\u63a7\u5236\uff0c",(0,c.jsx)(n.code,{children:"bool"}),"\uff0c\u9ed8\u8ba4 ",(0,c.jsx)(n.code,{children:"true"})]}),"\n",(0,c.jsxs)(n.li,{children:[(0,c.jsx)(n.code,{children:"FormatAsV2
|