UNPKG

openapi-diff

Version:

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

19 lines (18 loc) 478 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PathBuilder = void 0; 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;