Open
Description
It would be useful if there is a way to describe a default value of a property. This could be especially useful in combination with a discriminator type.
To better explain the use case, if we look at the generated code of the TypeSchema spec we see different types i.e. StringPropertyType
, IntegerPropertyType
, etc. If you now use these types you always need to set the value of the type i.e.
IntegerPropertyType type = new IntegerPropertyType();
type.setType("integer");
It would be much better if the IntegerPropertyType
already includes "integer"
as default value for the type property.
Metadata
Metadata
Assignees
Labels
No labels