UNPKG

open-api-mocker

Version:

A mock server based in Open API Specification

19 lines (13 loc) 373 B
'use strict'; class Info { constructor({ title, contact, license, version }, extensionProps = []) { this.title = title; this.contact = contact; this.license = license; this.version = version; this.extensions = {}; for(const [extensionName, extensionValue] of extensionProps) this.extensions[extensionName] = extensionValue; } } module.exports = Info;