-
Notifications
You must be signed in to change notification settings - Fork 149
Comparing changes
Open a pull request
base repository: go-openapi/runtime
base: v0.26.2
head repository: go-openapi/runtime
compare: v0.27.0
- 12 commits
- 33 files changed
- 1 contributor
Commits on Dec 11, 2023
-
test readability: refactored TLS tests
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for 5e80a92 - Browse repository at this point
Copy the full SHA 5e80a92View commit details -
chore: relinted denco router (govet)
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for 248b38c - Browse repository at this point
Copy the full SHA 248b38cView commit details
Commits on Dec 12, 2023
-
ByteStream consumer can write to interface{}
* fix(ByteStreamConsumer): may now write into an interface which underlying type is []byte or string. * feat(ByteStreamConsumer): added support to io.ReaderFrom, preferred over io.Writer if available * feat(ByteStreamProducer): added support to io.WriterTo, preferred over io.Reader if available * refact(ByteStreamProducer): removed redundant case "string" and preferred the more general reflected case (supports aliased strings) * test: refactored ByteStream tests * test: added benchmark for bytestream.Consume * fixes #167 Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for e9d312a - Browse repository at this point
Copy the full SHA e9d312aView commit details -
feat: more options for UI middleware
- refactored UI middleware * factorized chore middleware to remove duplicated code * factorized UI middleware options: to avoid breaking changes in the options types, there is a decode/encode to a common structure * added more options: * allows to fully customize the UI template * added more unit tests - Spec middleware: added support for optional SpecOption argument * allows to serve the spec from a custom path / document name - serving with or without trailing "/" (cf. issue #238) * replaced path.Join() by path.Clean(), which is the intended behavior (i.e. serve the path, irrespective of the presence of a trailing slash) * generalized this behavior to all UI and Spec middleware, not just swaggerUI - API Context: * exposed middleware to serve RapiDoc UI * allowed new UIOption (...UIOption) to the APIHandler, etc middleware * coordinated UI / Spec middleware to be consistent when non-default path/document URL is served * fixes #192 * fixes #226 Signed-off-by: Frederic BIDON <fredbi@yahoo.com>Configuration menu - View commit details
-
Copy full SHA for fe71d27 - Browse repository at this point
Copy the full SHA fe71d27View commit details
Commits on Dec 13, 2023
-
test: fixed typos and confusing tests
This is a follow-up on #273. I realized that a few typos escaped my review on docstrings and that some misnomers for variables in tests made the tests difficult to read (e.g. rdr for a Writer...). Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for 442694d - Browse repository at this point
Copy the full SHA 442694dView commit details
Commits on Dec 17, 2023
-
chore: removed support for pre go1.8
Now that the go.mod requirement is to support at least go1.19, we may remove support for older versions of go. Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for bca195f - Browse repository at this point
Copy the full SHA bca195fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d66801 - Browse repository at this point
Copy the full SHA 0d66801View commit details -
added some test assertions for debug mode
Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for d4904c3 - Browse repository at this point
Copy the full SHA d4904c3View commit details
Commits on Dec 18, 2023
-
updated go-openapi dependencies
Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for bdf50bc - Browse repository at this point
Copy the full SHA bdf50bcView commit details -
* fixes #126 This PR implements the proposal N°1 exposed in issue #126: * if there is a non-zero timeout set with the request, we add this timeout to the operation context * applicable contexts are: runtime.Context -> operation.Context -> context.WithTimeout(t>0) * the actual behavior is determined by the shortest deadline set on those contexts * added unit tests to assert that the different contexts are formed correctly: * an operation with no context inherits from the runtime context * an operation with no timeout set (by context or parameter) defaults to 30s (default timeout) * when several timeouts are set, the shortest wins * an operation with no timeout in context and a 0 timeout param waits for ever (and not with immediate timeout) Signed-off-by: Frédéric BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for 552b300 - Browse repository at this point
Copy the full SHA 552b300View commit details
Commits on Dec 22, 2023
-
feat: more capable csv consumer and producer
This PR allows to use the CSV consumer and producer in a more versatile way. There is no breaking change to the interface. * fixes #263 (types built with an io.Reader should be able to produce CSV) * csv/consumer can now consume CSV into *csv.Writer, io.Writer, io.ReaderFrom, encoding.BinaryUnmarshaler * also supports the new CSVWriter interface, i.e. anything that can Write([]string) error like *csv.Writer * also supports pointers with underlying type *[][]string, *[]byte and *string, not just *[]byte * csv/producer can now produce CSV from *csv.Reader, io.Reader, io.WriterTo, encoding.BinaryMarshaler * also supports the new CSVReader interface, i.e. anything that can Read() ([]string, error) like *csv.Reader * also supports underlying types [][]string, []byte and string, not just []byte * CSVConsumer and CSVProducer now stream CSV records whenever possible, * like ByteStreamConsumer and Producer, added the CSVCloseStream() option * added support to (optionally) configure the CSV format with CSVOpts, using the options made available by the standard library * doc: documented the above in the exported func signatures * test: added full unit test of the CSVConsumer and Producer Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for cc8632e - Browse repository at this point
Copy the full SHA cc8632eView commit details
Commits on Dec 26, 2023
-
fix(ci): muted warnings in CI runs due to cache conflicts
Every time a job is posted, I receive false alarm failure notifications because of some cache conflict during the linting job. Reference: golangci/golangci-lint-action#807 * ci: fixed code coverage on all sub packages Signed-off-by: Frederic BIDON <fredbi@yahoo.com>
Configuration menu - View commit details
-
Copy full SHA for 13c451f - Browse repository at this point
Copy the full SHA 13c451fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.26.2...v0.27.0