Skip to content

Instantly share code, notes, and snippets.

@Avilocap
Created July 14, 2019 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Avilocap/96c3979d1fd9b77eeef083e8dd5415ab to your computer and use it in GitHub Desktop.
Save Avilocap/96c3979d1fd9b77eeef083e8dd5415ab to your computer and use it in GitHub Desktop.
Fichero JSON de clases - JSON con Python - Daviddelatorre.me
{
"Classes":[
{
"Name" : "Actor",
"Extend" : "DomainEntity",
"Properties": [
{
"Name" : "name",
"Type" : "String",
"Constraint" : ["@NotBlank"],
"Display" : true
},
{
"Name" : "middleName",
"Type" : "String",
"Constraint" : [],
"Display" : true
},
{
"Name" : "surname",
"Type" : "String",
"Constraint" : ["@NotBlank"],
"Display" : true
},
{
"Name" : "photo",
"Type" : "String",
"Constraint" : ["@URL"],
"Display" : false
},
{
"Name" : "email",
"Type" : "String",
"Constraint" : ["@NotBlank","@URL"],
"Display" : true
},
{
"Name" : "phone",
"Type" : "String",
"Constraint" : [],
"Display" : true
},
{
"Name" : "address",
"Type" : "String",
"Constraint" : [],
"Display" : true
}
]
},
{
"Name" : "Message",
"Extend" : "DomainEntity",
"Properties": [
{
"Name" : "sendDate",
"Type" : "Date",
"Constraint" : ["@Past"],
"Display" : true
},{
"Name" : "subject",
"Type" : "String",
"Constraint" : ["@NotBlank"],
"Display" : true
},{
"Name" : "body",
"Type" : "String",
"Constraint" : ["@NotBlank"],
"Display" : true
},{
"Name" : "topic",
"Type" : "String",
"Constraint" : ["@NotBlank"],
"Display" : true
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment