This commit is contained in:
tree 2022-04-12 13:11:35 +02:00
rodič 07c0c02e60
revize c418428618
3 změnil soubory, kde provedl 2 přidání a 3 odebrání

Zobrazit soubor

@ -41,4 +41,5 @@ properties:
properties:
type: object
parent:
type: string
pattern: "^[a-z0-9-]+$"

Zobrazit soubor

@ -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

Zobrazit soubor

@ -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