nango.yaml: string literals that start with a digit (`7d`, `2fa`) are parsed as numbers
Author: breken-aiCreated Sep 27, 2026Updated Sep 27, 2026
getNativeDataType() in packages/nango-yaml/lib/helpers.ts uses parseInt(value, 10), which reads the leading digits of any string. So a model like:
models:
Report:
period: 7d | 30d | 90d
factor: 2fais parsed as period: 7 | 30 | 90 and factor: 2, and the generated models.ts types the fields as numbers. 1.5 is also cut to 1. Only a whole numeric token should become a number literal.
Suggested fix (regex check + 2 unit tests): https://github.com/breken-ai/nango/compare/master...fix/yaml-numeric-prefix-literals
Source: NangoHQ/nango