UNPKG

openapi-diff

Version:

A CLI tool to identify differences between Swagger/OpenAPI specs.

18 lines (17 loc) 448 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class PathBuilder { constructor(originalPath) { this.originalPath = originalPath; } static createRootPathBuilder() { return new PathBuilder([]); } withChild(segment) { return new PathBuilder([...this.originalPath, segment]); } build() { return [...this.originalPath]; } } exports.PathBuilder = PathBuilder;