Skip to content

Commit

Permalink
dep: go mod: update
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Dec 13, 2021
1 parent 1021252 commit fca25e1
Show file tree
Hide file tree
Showing 55 changed files with 104 additions and 196 deletions.
8 changes: 4 additions & 4 deletions cmd/oas3lint/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"log"
"regexp"

"github.com/grokify/simplego/fmt/fmtutil"
"github.com/grokify/simplego/log/severity"
"github.com/grokify/simplego/os/osutil"
"github.com/grokify/simplego/path/filepathutil"
"github.com/grokify/mogo/fmt/fmtutil"
"github.com/grokify/mogo/log/severity"
"github.com/grokify/mogo/os/osutil"
"github.com/grokify/mogo/path/filepathutil"
"github.com/grokify/spectrum/openapi3"
"github.com/grokify/spectrum/openapi3lint"
"github.com/grokify/spectrum/openapi3lint/extensions"
Expand Down
6 changes: 3 additions & 3 deletions cmd/oas3validate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"strings"

"github.com/grokify/gocharts/data/histogram"
"github.com/grokify/simplego/fmt/fmtutil"
"github.com/grokify/simplego/net/urlutil"
"github.com/grokify/simplego/type/maputil"
"github.com/grokify/mogo/fmt/fmtutil"
"github.com/grokify/mogo/net/urlutil"
"github.com/grokify/mogo/type/maputil"
"github.com/grokify/spectrum/openapi3"
"github.com/jessevdk/go-flags"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/openapi2csv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"regexp"

"github.com/grokify/simplego/os/osutil"
"github.com/grokify/mogo/os/osutil"
csv "github.com/grokify/spectrum/openapi2/openapi2csv"
"github.com/jessevdk/go-flags"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/openapi2to3/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"log"
"strings"

"github.com/grokify/simplego/os/osutil"
"github.com/grokify/mogo/os/osutil"
"github.com/grokify/spectrum/openapi2"
"github.com/jessevdk/go-flags"
)
Expand Down
4 changes: 2 additions & 2 deletions docs/openapi3/inspect/missing_descriptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Spectrum provides an ability to list operation parameters and schema properties
specmore := openapi3.SpecMore{Spec: spec}

// OperationPropertiesDescriptionStatus returns a
// map[string]map[string]int as a `simplego/maputil.MapStringMapStringInt`
// map[string]map[string]int as a `mogo/maputil.MapStringMapStringInt`
// where `1` indicates with desc and `0` indicates without desc.
status := specmore.OperationPropertiesDescriptionStatus()

Expand All @@ -31,7 +31,7 @@ err := specmore.OperationParametersWithoutDescriptionsWriteFile(
specmore := openapi3.SpecMore{Spec: spec}

// SchemaPropertiesDescriptionStatus returns a
// map[string]map[string]int as a `simplego/maputil.MapStringMapStringInt`
// map[string]map[string]int as a `mogo/maputil.MapStringMapStringInt`
// where `1` indicates with desc and `0` indicates without desc.
status := specmore.SchemaPropertiesDescriptionStatus()

Expand Down
4 changes: 2 additions & 2 deletions docs/openapi3lint.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The Policy file uses the following syntax:

### Severity Levels

`openapi3lint` uses Syslog-like severity levels defined in `github.com/grokify/simplego/log/severity`, including:
`openapi3lint` uses Syslog-like severity levels defined in `github.com/grokify/mogo/log/severity`, including:

```go
const (
Expand Down Expand Up @@ -115,6 +115,6 @@ Functions:

* `Name()` should return the name of a rule in kebab case.
* `Scope()` should return the type of object / property operated on. This affects the processing function provided. As of now, `operation` and `specfication` are supported.
* `Severity()` should return a syslog like severity level supported by `github.com/grokify/simplego/log/severity`. This should be updated for the `Policy` used.
* `Severity()` should return a syslog like severity level supported by `github.com/grokify/mogo/log/severity`. This should be updated for the `Policy` used.
* `ProcessSpec(spec *oas3.Swagger, pointerBase string)` is a function to process a rule at the top specfication level. `pointerBase` is used to provide JSON Pointer info before the `#`. This is executed when `Scope()` is set to `specification`.
* `ProcessOperation(spec *oas3.Swagger, op *oas3.Operation, opPointer, path, method string)` is executed when `Scope()` is set to `operation`.
2 changes: 1 addition & 1 deletion docs/openapi3lint/custom_rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type Rule interface {

* `Name()` should return the name of a rule in kebab case.
* `Scope()` should return the type of object / property operated on. This affects the processing function provided. As of now, `operation` and `specfication` are supported.
* `Severity()` should return a syslog like severity level supported by `github.com/grokify/simplego/log/severity`. This should be updated for the `Policy` used.
* `Severity()` should return a syslog like severity level supported by `github.com/grokify/mogo/log/severity`. This should be updated for the `Policy` used.
* `ProcessSpec(spec *oas3.Swagger, pointerBase string)` is a function to process a rule at the top specfication level. `pointerBase` is used to provide JSON Pointer info before the `#`. This is executed when `Scope()` is set to `specification`.
* `ProcessOperation(spec *oas3.Swagger, op *oas3.Operation, opPointer, path, method string)` is executed when `Scope()` is set to `operation`.

Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ go 1.16

require (
github.com/buaazp/fasthttprouter v0.1.1
github.com/getkin/kin-openapi v0.85.0
github.com/getkin/kin-openapi v0.86.0
github.com/ghodss/yaml v1.0.0
github.com/grokify/gocharts v1.16.1
github.com/grokify/simplego v0.31.1
github.com/grokify/gocharts v1.16.2
github.com/grokify/mogo v0.32.2
github.com/jessevdk/go-flags v1.5.0
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.26.0
Expand Down
Loading

0 comments on commit fca25e1

Please sign in to comment.