Skip to content

Property default values #23

Open
Open
@chriskapp

Description

@chriskapp

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions