Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type M ¶
type M struct {
// string key — the green guard rail (already emits additionalProperties).
StrKey map[string]int `json:"strKey"`
// int key — valid JSON, must emit additionalProperties (#2251).
IntKey map[int]int `json:"intKey"`
// named int64 key — likewise.
I64Key map[int64]int `json:"i64Key"`
// float key — encoding/json rejects it; must NOT emit additionalProperties
// and must raise a diagnostic instead of dropping silently (§18 fail-loud).
BadKey map[float64]int `json:"badKey"`
}
M probes map key types (go-swagger#2251). encoding/json marshals integer-kind keys as JSON string keys, so they ARE representable as additionalProperties — codescan currently drops them (only string / TextMarshaler keys are emitted).
swagger:model
Click to show internal directories.
Click to hide internal directories.