Skip to content

Commit

Permalink
merged origin
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaangiolillo committed Mar 8, 2024
2 parents 7efff49 + 628f4d2 commit 84a5c9a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tools/cli/internal/openapi/errors/pathConflictError.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package errors

import "fmt"

type PathConflictError struct {
Entry string
}

func (e PathConflictError) Error() string {
return fmt.Sprintf("there was a conflict with the Path: %s", e.Entry)
}
13 changes: 13 additions & 0 deletions tools/cli/internal/openapi/openapi.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package openapi

import (
"github.com/tufin/oasdiff/load"
)

type Merger interface {
MergeOpenAPISpecs([]string) (*load.SpecInfo, error)
}

type Parser interface {
CreateOpenAPISpecFromPath(string) (*load.SpecInfo, error)
}

0 comments on commit 84a5c9a

Please sign in to comment.