UNPKG

openapi-graph-core

Version:

A TS library to manage large API projects defined by OpenAPIv3 specification.

30 lines (29 loc) 696 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OpenAPIGraph = void 0; const OpenAPIGraph = class OpenAPIGraphImpl { constructor(path) { this.path = path; this.nodes = { schemas: {}, }; this.edges = { ref: { schemaRef: {}, }, }; } setSchemaNodes(schemaNodes) { this.nodes.schemas = schemaNodes; } getSchemaNodes() { return this.nodes.schemas; } setRefEdges(refEdges) { this.edges.ref = refEdges; } getSchemaRefEdges() { return this.edges.ref.schemaRef; } }; exports.OpenAPIGraph = OpenAPIGraph;