Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/compile/csdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class CSDLMeta {

/**
* Construct map of qualified term names
* @param {object} alias Map of namespace or alias to alias
* @param {*} alias Map of namespace or alias to alias
*/
#getVocabularies(alias) {
Object.keys(CDS_TERMS).forEach(vocab => {
Expand All @@ -187,7 +187,7 @@ class CSDLMeta {
/**
* Find model element by qualified name
* @param {string} qname Qualified name of model element
* @return {object} Model element
* @return {*} Model element
*/
modelElement(qname) {
const q = nameParts(qname);
Expand Down
202 changes: 101 additions & 101 deletions lib/compile/csdl2openapi.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib/compile/diagram.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ const { isIdentifier, nameParts } = require('./csdl');

/**
* Diagram representation of property cardinality
* @param {object} typedElement Typed model element, e.g. property
* @param {*} typedElement Typed model element, e.g. property
* @return {string} cardinality
*/
function cardinality(typedElement) {
return typedElement.$Collection ? '*' : (typedElement.$Nullable ? '0..1' : '');
}

class Diagram {
/** @type {import('./csdl').CSDLMeta} */
/** @type {*} */
#meta
#comma = ''
// TODO: make colors configurable
Expand All @@ -26,7 +26,7 @@ class Diagram {

/**
* Construct resource diagram using web service at https://yuml.me
* @param {object} entityContainer Entity Container object
* @param {*} entityContainer Entity Container object
* @return {string} resource diagram
*/
getResourceDiagram(entityContainer) {
Expand Down Expand Up @@ -86,7 +86,7 @@ class Diagram {
/**
* Diagram representation of action or function overload
* @param {string} name Name of action or function import
* @param {object} overload Action or function overload
* @param {*} overload Action or function overload
* @return diagram part
*/
#overloadDiagram(name, overload) {
Expand Down
Loading
Loading