update
This commit is contained in:
rodič
07c0c02e60
revize
c418428618
|
@ -41,4 +41,5 @@ properties:
|
|||
properties:
|
||||
type: object
|
||||
parent:
|
||||
type: string
|
||||
pattern: "^[a-z0-9-]+$"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
type: array
|
||||
items:
|
||||
$ref: https://spec.utxo.cz/schema/1/events.json
|
||||
$ref: https://spec.utxo.cz/schema/1/event.json
|
||||
|
|
|
@ -13,10 +13,8 @@ await utxo.init();
|
|||
const schemas = await utxo.schemas();
|
||||
|
||||
const validators = {};
|
||||
console.log(schemas, schemas.map((s) => s.name));
|
||||
for (const item of schemas) {
|
||||
validators[item.name] = ajv.compile(item.schema);
|
||||
//ajv.addSchema(item.schema)
|
||||
}
|
||||
|
||||
// check entries
|
||||
|
|
Načítá se…
Odkázat v novém úkolu