📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

@api-components/api-example-generator

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-components/api-example-generator - npm Package Compare versions

Comparing version

to
4.4.13

2

package.json
{
"name": "@api-components/api-example-generator",
"description": "Examples generator from AMF model",
"version": "4.4.12",
"version": "4.4.13",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "main": "index.js",

@@ -60,2 +60,6 @@ import {AmfHelperMixin} from '@api-components/amf-helper-mixin/amf-helper-mixin.js';

values?: Array<Example>;
/**
* Example description
*/
description?: string;
}

@@ -62,0 +66,0 @@

@@ -20,2 +20,3 @@ import { AmfHelperMixin } from '@api-components/amf-helper-mixin/amf-helper-mixin.js';

* @property {String=} raw Raw value of RAML example. This value is a YAML or JSON
* @property {String=} description Example description
* schema value. This is only set when raw value is available in the model and it is not JSON/XML.

@@ -656,2 +657,6 @@ * @property {Array<Example>=} values Only when `hasUnion` is set.

}
const description = /** @type {string} */ (this._getValue(
example,
this.ns.aml.vocabularies.core.description
));
const hasRaw = !!raw;

@@ -661,2 +666,5 @@ const result = {};

result.hasUnion = false;
if (description) {
result.description = description;
}
if (result.hasTitle) {

@@ -663,0 +671,0 @@ result.title = title;