Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-793

Required attribute on nullable scalar value types should not be possible

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Weaver

      At the moment the following doesn't raise any weaving error:

      Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      [Required]
      public int? TestInt { get; set; }
      

      This should not be possible.
      Besides, the weaving error coming from the weaver regarding the misuse of the RequiredAttribute should probably be changed, as it is confusing.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ferdinando.papale@mongodb.com Ferdinando Papale
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: