From e085c0ce22403c7b41f25a22f0f29865fdc9dac8 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 5 Nov 2026 17:11:58 +0100 Subject: [PATCH] mesh-catalog seat regenerated with the nullable bounds: a config declaration's minimum and maximum are *float64, so a bound of 0 is kept (issue 1966) Claude-Session: https://claude.ai/code/session_01NcbgfFSnn24M3GcqttoU7i --- contracts/go/seats/meshcatalog/contract.go | 18 +++++++++--------- contracts/ts/seats/meshcatalog/src/index.ts | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/contracts/go/seats/meshcatalog/contract.go b/contracts/go/seats/meshcatalog/contract.go index 9bbbb4b5..32870c7c 100644 --- a/contracts/go/seats/meshcatalog/contract.go +++ b/contracts/go/seats/meshcatalog/contract.go @@ -593,16 +593,16 @@ type ConfigCandidatesByPullValueDeclaresValueValue struct { Enum any `json:"enum,omitempty"` Kind string `json:"kind"` // a declared bound; 0 is a bound, absent is none - Maximum any `json:"maximum,omitempty"` + Maximum *float64 `json:"maximum,omitempty"` // a declared bound; 0 is a bound, absent is none - Minimum any `json:"minimum,omitempty"` - Pattern string `json:"pattern,omitempty"` - Predefined string `json:"predefined,omitempty"` - Required bool `json:"required,omitempty"` - Runtime bool `json:"runtime,omitempty"` - Trusted bool `json:"trusted,omitempty"` - Type string `json:"type,omitempty"` - Why string `json:"why"` + Minimum *float64 `json:"minimum,omitempty"` + Pattern string `json:"pattern,omitempty"` + Predefined string `json:"predefined,omitempty"` + Required bool `json:"required,omitempty"` + Runtime bool `json:"runtime,omitempty"` + Trusted bool `json:"trusted,omitempty"` + Type string `json:"type,omitempty"` + Why string `json:"why"` } // ConfigCandidatesByPullValue is one value of the state config-candidates under the key . diff --git a/contracts/ts/seats/meshcatalog/src/index.ts b/contracts/ts/seats/meshcatalog/src/index.ts index 096581e6..3cf1cc88 100644 --- a/contracts/ts/seats/meshcatalog/src/index.ts +++ b/contracts/ts/seats/meshcatalog/src/index.ts @@ -427,9 +427,9 @@ export interface ConfigCandidatesByPullValueDeclaresValueValue { "enum"?: unknown; "kind": string; /** a declared bound; 0 is a bound, absent is none */ - "maximum"?: unknown; + "maximum"?: number | null; /** a declared bound; 0 is a bound, absent is none */ - "minimum"?: unknown; + "minimum"?: number | null; "pattern"?: string; "predefined"?: string; "required"?: boolean;