Legytma Schemas

Align Widget Schema

https://legytma.com.br/schema/widget/align.schema.json

Schema to validation of JSON used to parse Widget.

You can add all valid properties to complete validation.

Abstract Extensible Status Identifiable Custom Properties Additional Properties Access Restrictions Defined In
Can be instantiated No Unknown status No Forbidden Allowed none align.schema.json

Align Widget Type

object (Align Widget)

all of

Align Widget Properties

Property Type Required Nullable Defined by
type string Required cannot be null Align Widget
alignment string Optional cannot be null Align Widget
widthFactor Merged Optional cannot be null Align Widget
heightFactor Merged Optional cannot be null Align Widget
child object Optional cannot be null Align Widget

type

Identify the widget type

Used to identify parser. Every parser can permit only one type

type

type Type

string (Type)

type Constraints

constant: the value of this property must be equal to:

"Align"

alignment

Determine the alignment

Used to identify parser. Every parser can permit only one type

alignment

alignment Type

string (Alignment)

alignment Constraints

enum: the value of this property must be equal to one of the following values:

Value Explanation
"topLeft"  
"topCenter"  
"topRight"  
"centerLeft"  
"center"  
"centerRight"  
"bottomLeft"  
"bottomCenter"  
"bottomRight"  

alignment Default Value

The default value is:

"center"

alignment Examples

"topLeft"
"topCenter"
"topRight"
"centerLeft"
"center"
"centerRight"
"bottomLeft"
"bottomCenter"
"bottomRight"

widthFactor

Define the representation of double acceptable.

Used to identify parser. Every parser can permit only one type

widthFactor

widthFactor Type

merged type (Double)

one (and only one) of

widthFactor Constraints

maximum: the value of this number must smaller than or equal to: 1

minimum: the value of this number must greater than or equal to: 0

widthFactor Default Value

The default value is:

1

heightFactor

Define the representation of double acceptable.

Used to identify parser. Every parser can permit only one type

heightFactor

heightFactor Type

merged type (Double)

one (and only one) of

heightFactor Constraints

maximum: the value of this number must smaller than or equal to: 1

minimum: the value of this number must greater than or equal to: 0

heightFactor Default Value

The default value is:

1

child

Schema to validation of JSON used to parse Widget.

You can add all valid properties to complete validation.

child

child Type

object (Widget)