@charlietango/react-docs-net
Advanced tools
Comparing version
@@ -54,2 +54,4 @@ // | ||
const name = typesName(model.name); | ||
const summary = [model.description, model.see].filter(Boolean); | ||
const fileSource = `using System.ComponentModel.DataAnnotations; | ||
@@ -65,3 +67,3 @@ using System.Runtime.Serialization; | ||
{ | ||
${model.see ? comment(model.see, 4, 'summary') : ''} | ||
${summary.length ? comment(summary.join('\n'), 4, 'summary') : ''} | ||
public enum ${name} | ||
@@ -68,0 +70,0 @@ { |
@@ -132,2 +132,16 @@ // | ||
if (result.models) { | ||
/* If this is view model generated from an ENUM file, we only want to output the Types file */ | ||
if (model.props.hasOwnProperty('ENUM_TYPE')) { | ||
return [ | ||
createEnum( | ||
{ | ||
name, | ||
description: model.description, | ||
types: result.models[0].types, | ||
}, | ||
config | ||
), | ||
]; | ||
} | ||
const subModels = result.models | ||
@@ -134,0 +148,0 @@ .map(sub => { |
{ | ||
"name": "@charlietango/react-docs-net", | ||
"description": "Package and publish a NuGet package to a custom feed.", | ||
"version": "3.4.1", | ||
"version": "3.5.0", | ||
"main": "lib/index.js", | ||
@@ -48,3 +48,3 @@ "bin": { | ||
}, | ||
"gitHead": "bef4d6489f154b48f5e601e0560fa767d4359c8a" | ||
"gitHead": "bcbfbf9674075be44a6aa426603b8ccc74ba81d6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
48914
1.83%821
1.73%