-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
name of standard trait is automatically prefixed with 'cdm:/primitives.cdm.json/' #353
Comments
Hi @dgcaron , could you provide a sample of your code that saves the file in this schema? |
Sure, I am on a short break right now but will provide a gist of the code at the end of the week. |
hi, i have created a repro with a test here where you can run the code using an azure default credential. this code saves the manifest and the entity docs directly to adls gen2 |
hi, I see the issue is here: https://github.com/dgcaron/cdm-trait-gist/blob/b58681a910f9c28ecc23ef3fe3db396e4084113c/src/index.ts#L183 If you remove the copyOptions and call SaveAsAsync with only the first two parameters, it should work as expected. I think that 'StringRefs' parameter is poorly named as it does not create string references if set to true (it is false by default). The default copyOptions should be what you are looking for. |
yes, that fixes the issue. thanks for taking the time to check this out! |
i am trying to create a common datsmodel using the typescript sdk but i am having trouble adding standard traits to my data model.
when i use
the saved document contains
whereas i expect it to be
this behaviour goes away if i remove the primitives / foundations import from the entity document.
The text was updated successfully, but these errors were encountered: