Skip to content

Infer datasource FK types from the referenced parent field - #32

Merged
rmcfadden merged 1 commit into
mainfrom
infer-reference-field-types
Oct 9, 2026
Merged

rmcfadden merged 1 commit into
mainfrom
infer-reference-field-types

Conversation

@rmcfadden

Copy link
Copy Markdown
Contributor

Summary

  • Datasource type, validator, and test emit resolve fieldTypeOf before convertSpecType.
  • FK columns without an authored type emit long (parent inherits: set id) instead of string.

Depends on generators-common#31.

Test plan

  • node --experimental-strip-types --test test/generate-datasource-types.integration.test.ts

C# type, validator, and test emit use fieldTypeOf so omitted YAML type on references maps to long instead of string.
@rmcfadden
rmcfadden merged commit cdb25bb into main Oct 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant