Legytma Schemas

Card Schema

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

Created by Windol [email protected] at 04/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

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

Card Type

object (Card)

all of

Card Properties

Property Type Required Nullable Defined by
type string Optional cannot be null Card
color Merged Optional cannot be null Card
child object Optional cannot be null Card
shape Unknown Type Optional can be null Card
elevation Merged Optional cannot be null Card
borderOnForeground boolean Optional cannot be null Card
clipBehavior string Optional cannot be null Card
margin Unknown Type Optional cannot be null Card
semanticContainer boolean Optional cannot be null Card

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:

"Card"

color

A number in format string or integer

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

color

color Type

merged type (Color)

all of

color Default Value

The default value is:

"0xFF000000"

color Examples

"#FFFFFFFF"
"0xFFFFFFFF"
"4294967295"
4294967295

child

Schema to validation of JSON used to parse Widget.

You can add all valid properties to complete validation.

child

child Type

object (Widget)

shape

Created by Windol [email protected] at 15/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

shape

shape Type

any of the folllowing: array or boolean or integer or number or object or string (Dynamic)

elevation

Define the representation of double acceptable.

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

elevation

elevation Type

merged type (Double)

one (and only one) of

elevation 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

elevation Default Value

The default value is:

1

borderOnForeground

Define the representation of boolean acceptable.

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

borderOnForeground

borderOnForeground Type

boolean (Boolean)

borderOnForeground Default Value

The default value is:

true

borderOnForeground Examples

true
false

clipBehavior

Created by Windol [email protected] at 01/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

clipBehavior

clipBehavior Type

string (Clip)

clipBehavior Constraints

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

Value Explanation
"antiAlias"  
"none"  
"hardEdge"  
"antiAliasWithSaveLayer"  

clipBehavior Default Value

The default value is:

"none"

margin

Created by Windol [email protected] at 01/05/2020. Copyright (c) 2020 Legytma Soluções Inteligentes (https://legytma.com.br). All rights reserved.

margin

margin Type

any of the folllowing: string or object (Edge Insets Geometry)

margin Default Value

The default value is:

{
  "type": "only",
  "bottom": 8
}

semanticContainer

Define the representation of boolean acceptable.

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

semanticContainer

semanticContainer Type

boolean (Boolean)

semanticContainer Default Value

The default value is:

true

semanticContainer Examples

true
false