Skip to content

Commit 2f9cf59

Browse files
Merge branch 'main' into openapi-support
2 parents cf325b3 + cddaf2e commit 2f9cf59

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

arazzo/arazzo_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ func roundTripYamlOnly(data []byte) ([]byte, error) {
832832
func handleValidationErrors(t *testing.T, errs []error, docSpecificIgnores []string) []error {
833833
t.Helper()
834834

835-
errs = filterCurrentUncomfirmedValidationErrors(errs, docSpecificIgnores)
835+
errs = filterCurrentUnconfirmedValidationErrors(errs, docSpecificIgnores)
836836
if !assert.Empty(t, errs) {
837837
for _, err := range errs {
838838
t.Log(err.Error())
@@ -842,7 +842,7 @@ func handleValidationErrors(t *testing.T, errs []error, docSpecificIgnores []str
842842
return errs
843843
}
844844

845-
func filterCurrentUncomfirmedValidationErrors(validationErrs []error, docSpecificIgnores []string) []error {
845+
func filterCurrentUnconfirmedValidationErrors(validationErrs []error, docSpecificIgnores []string) []error {
846846
var filteredValidationErrs []error
847847

848848
ignoreForNow := []string{

arazzo/criterion/criterion.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ const (
3232
type CriterionTypeVersion string
3333

3434
const (
35-
CriterionTypeVersionNone CriterionTypeVersion = ""
36-
CriterionTypeVersionDraftGoesnerDispatchJsonPath00 CriterionTypeVersion = "draft-goessner-dispatch-jsonpath-00"
37-
CriterionTypeVersionXPath30 CriterionTypeVersion = "xpath-30"
38-
CriterionTypeVersionXPath20 CriterionTypeVersion = "xpath-20"
39-
CriterionTypeVersionXPath10 CriterionTypeVersion = "xpath-10"
35+
CriterionTypeVersionNone CriterionTypeVersion = ""
36+
CriterionTypeVersionDraftGoessnerDispatchJsonPath00 CriterionTypeVersion = "draft-goessner-dispatch-jsonpath-00"
37+
CriterionTypeVersionXPath30 CriterionTypeVersion = "xpath-30"
38+
CriterionTypeVersionXPath20 CriterionTypeVersion = "xpath-20"
39+
CriterionTypeVersionXPath10 CriterionTypeVersion = "xpath-10"
4040
)
4141

4242
// CriterionExpressionType represents the type of expression used to evaluate the criterion.
@@ -57,9 +57,9 @@ func (c *CriterionExpressionType) Validate(opts ...validation.Option) []error {
5757
switch c.Type {
5858
case CriterionTypeJsonPath:
5959
switch c.Version {
60-
case CriterionTypeVersionDraftGoesnerDispatchJsonPath00:
60+
case CriterionTypeVersionDraftGoessnerDispatchJsonPath00:
6161
default:
62-
errs = append(errs, validation.NewValueError(validation.NewValueValidationError("version must be one of [%s]", strings.Join([]string{string(CriterionTypeVersionDraftGoesnerDispatchJsonPath00)}, ", ")), core, core.Version))
62+
errs = append(errs, validation.NewValueError(validation.NewValueValidationError("version must be one of [%s]", strings.Join([]string{string(CriterionTypeVersionDraftGoessnerDispatchJsonPath00)}, ", ")), core, core.Version))
6363
}
6464
case CriterionTypeXPath:
6565
switch c.Version {

arazzo/failureaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const (
3030
type FailureAction struct {
3131
marshaller.Model[core.FailureAction]
3232

33-
// Name is the case sensitive name of the failure action.
33+
// Name is the case-sensitive name of the failure action.
3434
Name string
3535
// Type is the type of action to take on failure.
3636
Type FailureActionType

arazzo/parameter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const (
3030
type Parameter struct {
3131
marshaller.Model[core.Parameter]
3232

33-
// Name is the case sensitive name of the parameter.
33+
// Name is the case-sensitive name of the parameter.
3434
Name string
3535
// In is the location of the parameter within an operation.
3636
In *In

0 commit comments

Comments
 (0)