Befor generating

This commit is contained in:
marys
2026-06-01 13:17:37 +02:00
parent 3383f4bf4a
commit 1aa1b5f625
6756 changed files with 649946 additions and 1 deletions
@@ -0,0 +1,25 @@
const { getMapValueOfType } = require('../models/utils');
const ExternalDocs = require('../models/external-docs');
/**
* Implements functions to deal with the ExternalDocs object.
* @mixin
*/
const MixinExternalDocs = {
/**
* @returns {boolean}
*/
hasExternalDocs() {
return !!(this._json.externalDocs && Object.keys(this._json.externalDocs).length);
},
/**
* @returns {(ExternalDocs | null)}
*/
externalDocs() {
return getMapValueOfType(this._json, 'externalDocs', ExternalDocs);
},
};
module.exports = MixinExternalDocs;