Optional Property

Oct 15, 2009 at 7:59 AM

Can the JsonSchema generator convert the class attribute having default value be converted as Optional property ?

 

public class A
{
  bool isThere=true;
}

Another suggestion is if a attribute is marked as nullable then it could be optional.

public class A
{
bool? isThere ;
}

What are your views?