You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git commit -m "refactor: simplify media type context passing in validation"
90
+
```
91
+
92
+
#### ❌ Bad: Multi-line commits
93
+
94
+
```bash
95
+
git commit -m "feat: implement prefixEncoding and itemEncoding for OpenAPI 3.2
96
+
97
+
- Add PrefixEncoding and ItemEncoding fields to MediaType
98
+
- Implement validation for mutual exclusivity
99
+
- Add comprehensive tests"
100
+
```
101
+
102
+
### Why Single-Line Commits?
103
+
104
+
1.**Simplicity**: Easy to read in git log and GitHub UI
105
+
2.**Consistency**: All commits follow the same pattern
106
+
3.**Searchability**: Easier to search and filter commits
107
+
4.**Tool Compatibility**: Works better with automated tools and scripts
108
+
61
109
## Testing
62
110
63
111
Follow these testing conventions when writing Go tests in this project. Run newly added or modified test immediately after changes to make sure they work as expected before continuing with more work.
@@ -68,7 +68,7 @@ The `arazzo` package provides an API for working with Arazzo documents including
68
68
69
69
### [openapi](./openapi)
70
70
71
-
The `openapi` package provides an API for working with OpenAPI documents including reading, creating, mutating, walking, validating and upgrading them. Supports both OpenAPI 3.0.xand 3.1.x specifications.
71
+
The `openapi` package provides an API for working with OpenAPI documents including reading, creating, mutating, walking, validating and upgrading them. Supports OpenAPI 3.0.x, 3.1.x, and 3.2.x specifications.
errs=append(errs, validation.NewValueError(validation.NewValueValidationError("arazzo.version only %s and below is supported", Version), core, core.Arazzo))
errs=append(errs, validation.NewValueError(validation.NewValueValidationError("arazzo.version only Arazzo versions between %s and %s are supported", MinimumSupportedVersion, MaximumSupportedVersion), core, core.Arazzo))
Copy file name to clipboardExpand all lines: arazzo/arazzo_test.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -301,7 +301,7 @@ sourceDescriptions:
301
301
underlyingErrorerror
302
302
}{
303
303
{line: 1, column: 1, underlyingError: validation.NewMissingFieldError("arazzo.workflows is missing")},
304
-
{line: 1, column: 9, underlyingError: validation.NewValueValidationError("arazzo.version only 1.0.1 and below is supported")},
304
+
{line: 1, column: 9, underlyingError: validation.NewValueValidationError("arazzo.version only Arazzo versions between 1.0.0 and 1.0.1 are supported")},
305
305
{line: 4, column: 3, underlyingError: validation.NewMissingFieldError("info.version is missing")},
306
306
{line: 6, column: 5, underlyingError: validation.NewMissingFieldError("sourceDescription.url is missing")},
307
307
{line: 7, column: 11, underlyingError: validation.NewValueValidationError("sourceDescription.type must be one of [openapi, arazzo]")},
0 commit comments