cog
74beca12 - fix: resolve allOf/$ref when coercing CLI input types for enum fields

Commit
12 days ago
fix: resolve allOf/$ref when coercing CLI input types for enum fields The Go CLI looks up property types from the OpenAPI schema to coerce string inputs (e.g. "3" → integer 3). cog-schema-gen emits enum/choices fields as allOf:[{$ref: ...}] where the type lives on the referenced schema, not the wrapper. Without resolving the ref, the type check falls through and the value is sent as a string, causing validation errors like '"3" is not one of [3,4,5]'.
Author
Parents
Loading