forked from nique_372/AiDataGenByLeo
103 lines
No EOL
4.1 KiB
JSON
103 lines
No EOL
4.1 KiB
JSON
{
|
|
"type" : "object",
|
|
"properties" : {
|
|
"name" : {
|
|
"type" : "string",
|
|
"description" : "Nombre del configurador"
|
|
},
|
|
"config" : {
|
|
"type" : "object",
|
|
"description" : "Configuracion general",
|
|
"properties" : {
|
|
"cols" : {
|
|
"type" : "integer",
|
|
"description" : "Numero de columnas de salida",
|
|
"minimum" : 1
|
|
}
|
|
},
|
|
"required" : ["cols"]
|
|
},
|
|
"output" : {
|
|
"type" : "object",
|
|
"description" : "Salida del generador",
|
|
"properties" : {
|
|
"type" : {
|
|
"type" : "string",
|
|
"description" : "Tipo de salida, vector o matrix",
|
|
"enum" : ["AIDATALEO_GEN_VECTOR", "AIDATALEO_GEN_MATRIX"]
|
|
},
|
|
"rows" : {
|
|
"type" : "integer",
|
|
"description" : "Filas maxima para la matriz",
|
|
"minimum" : 1,
|
|
"$comment" : "Solo es necesario para el contexto mtx"
|
|
},
|
|
"contexts" : {
|
|
"type" : "array",
|
|
"description" : "contextos de salida",
|
|
"items" : {
|
|
"type" : "object",
|
|
"description" : "contexto de generacion",
|
|
"properties" : {
|
|
"mode" : {
|
|
"type" : "string",
|
|
"description" : "tipo de contexto",
|
|
"enum" : ["normal" , "generate", "custom"]
|
|
},
|
|
"idx" : {
|
|
"anyOf" : [
|
|
{
|
|
"type" : "integer",
|
|
"description" : "indice unico para todas las features"
|
|
},
|
|
{
|
|
"type" : "array",
|
|
"description" : "Array con los indices custom",
|
|
"items" : {
|
|
"type" : "integer",
|
|
"minimum" : 0
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"data" : {
|
|
"type" :"array",
|
|
"description" : "features que se le aplica el contexto",
|
|
"items" : {
|
|
"type" :"object",
|
|
"description" : "cada feature a que se le aplica el contexto",
|
|
"properties" : {
|
|
"class" : {
|
|
"type" : "string",
|
|
"description" : "nombre de la feature"
|
|
},
|
|
"prefix" : {
|
|
"$comment" : "solo string, o null, o no se pone",
|
|
"anyOf" : [
|
|
{
|
|
"type" : "string",
|
|
"description" : "prefijo del feature real"
|
|
},
|
|
{
|
|
"const" : null
|
|
}
|
|
]
|
|
},
|
|
"params" : {
|
|
"type" : "object",
|
|
"description" : "parametros de la features"
|
|
}
|
|
},
|
|
"required" : ["class", "params"]
|
|
}
|
|
}
|
|
},
|
|
"required" : ["mode" , "idx", "data"]
|
|
}
|
|
}
|
|
},
|
|
"required" : ["type", "contexts"]
|
|
}
|
|
},
|
|
"required" : ["name" , "config", "output"]
|
|
} |