mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
The wire type of Plugin.Config.Interface.Types is an array of strings, not of objects with three properties. We just so happen to have a Go struct type to represent a plugin-interface-type value in memory with all the fields parsed out for convenience, but that is not part of the REST API contract documented by the Swager spec.U pdate the Swagger spec to correctly document that the Types property is an array of strings in the API, while still generating Go definitions that unmarshal into the convenient struct type. Move the definition and marshal/unmarshal methods for PluginInterfaceType into a more appropriate location than api/types. Rename the type to one that does not stutter or overload already heavily overloaded terminology. Modernize the parser and use property-based testing to assert that it behaves the same as the old parser for all well-formed inputs. Signed-off-by: Cory Snider <csnider@mirantis.com>
16 lines
374 B
Modula-2
16 lines
374 B
Modula-2
module github.com/moby/moby/api
|
|
|
|
go 1.23.0
|
|
|
|
require (
|
|
github.com/docker/go-connections v0.5.0
|
|
github.com/docker/go-units v0.5.0
|
|
github.com/google/go-cmp v0.5.9
|
|
github.com/moby/docker-image-spec v1.3.1
|
|
github.com/opencontainers/go-digest v1.0.0
|
|
github.com/opencontainers/image-spec v1.1.1
|
|
golang.org/x/time v0.11.0
|
|
gotest.tools/v3 v3.5.2
|
|
pgregory.net/rapid v1.2.0
|
|
)
|