open-api-mocker
Version:
A mock server based in Open API Specification
17 lines (11 loc) • 343 B
JavaScript
;
class ExternalDocumentation {
constructor({ url, description }, extensionProps = []) {
this.url = url;
this.description = description;
this.extensions = {};
for(const [extensionName, extensionValue] of extensionProps)
this.extensions[extensionName] = extensionValue;
}
}
module.exports = ExternalDocumentation;