Documentation
¶
Overview ¶
Package bug2804 reproduces go-swagger issue #2804 ("Should swagger:parameters support map[string][]string?"): a map-typed swagger:parameters field crashes the scan with a nil-pointer dereference in parameterBuilder.buildFromField (Schema.Typed on a nil schema), rather than producing a parameter or a diagnostic. A map is not representable as an OAS2 simple (query/formData) parameter.
The same rule applies to the other OAS2 SimpleSchema target — response headers: a map-typed (non-body) response field has no SimpleSchema representation and must be skipped with a diagnostic rather than silently corrupting the response body schema.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.