You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@property({
type: string, <----- problem 1: lower case "string"
required: true,
id: 1,
postgresql: {"columnName":"custid","dataType":"text","dataLength":null,"dataPrecision":null,"dataScale":null,"nullable":"NO"}, <--- problem 2: ideally it is formatted properly
})
custid: String; <---- problem 3: lower case "string"
The model discover generator calls discoverSingleModel to get model definitions, and the schema returned from this function has primitive data type as camel case like String, instead of all lower case string
Related to #2953
It seems like some of the items mentioned in #2953 wasn't fixed completely.
Runs the
lb4 discover
command and the generated code isn't exactly what we're looking for.Steps to reproduce
This is my command on postgres:
Scaffold an app and create a datasource that connects to a database
Run:
Current Behavior
Expected Behavior
See details in #2953 (comment)
Acceptance Criteria
There are more details in #3711 from @bajtos.
@property
, change the type to bestring
instead ofString
(listed as problem 1 above) --> see fix(cli): emit correct property definitions for built-in types in discovered models #4143string
instead ofString
(listed as problem 3 above) --> see fix(cli): emit correct property definitions for built-in types in discovered models #4143@property
, represent it as a TypeScript object --> see Use stringifyObject instead of JSON.stringify for connector metadata #4180The text was updated successfully, but these errors were encountered: