Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Marc Love (uSkinned.net) 432 posts 1691 karma points
    Aug 31, 2022 @ 09:03
    Marc Love (uSkinned.net)
    0

    Question around how uSync handles custom Data Types that store json.

    Hi,

    I have a custom Data Type which stores information in json format.

    This is an example snippet however there is a lot more stored.

    {
      "fixedWidth": false,
      "siteWidth": 1600,
    }
    

    The uSync config file saves this data as:

    {
          "fixedWidth": "False",
          "siteWidth": "1600",
     }
    

    Notice the quotes around the number and boolean. When I import uSync Content my custom Data Type can no longer display the value for siteWidth since it iis expecting a number rather than a string.

    My question is, why is siteWidth saved as a string in the uSync config file rather than a number?

    Cheers,

    Marc

  • Kevin Jump 2319 posts 14769 karma points MVP 8x c-trib
    Aug 31, 2022 @ 09:06
    Kevin Jump
    101

    Hi,

    yeah a fix for something else snook this in to the latest release, but its fixed for the upcoming v10.2.0 release :

    https://github.com/KevinJump/uSync/issues/413#issuecomment-1227372630

    there is also a nightly with the fix in - you can test with if you want to check that will work for you.

    https://dev.azure.com/jumoo/Public/_artifacts/feed/nightly/NuGet/uSync/overview/10.2.0-build.20220825.1

  • Marc Love (uSkinned.net) 432 posts 1691 karma points
    Aug 31, 2022 @ 09:12
    Marc Love (uSkinned.net)
    0

    Hi Kevin,

    Thanks for the quick response and such an amazing product. Happy to wait for the 10.2.0 release.

    Cheers,

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft