duh-schema
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -10,2 +10,9 @@ 'use strict'; | ||
const expression = { | ||
type: 'string', | ||
minLength: 1, | ||
maxLength: 256 | ||
// pattern: '^[a-zA-Z][:a-zA-Z0-9_]*$' // (a + 5) | ||
}; | ||
exports.id = id; | ||
@@ -45,1 +52,2 @@ | ||
exports.displayName = {type: 'string'}; | ||
exports.expression = expression; |
'use strict'; | ||
const {id, uint, int, access} = require('./primitive.js'); | ||
const {id, uint, int, access, expression} = require('./primitive.js'); | ||
@@ -10,4 +10,4 @@ const register = { | ||
name: id, | ||
addressOffset: uint, | ||
size: uint, | ||
addressOffset: uint, // base >> log2(regWidth) | ||
size: uint, // regWidth | ||
access: access, | ||
@@ -20,5 +20,7 @@ displayName: { type: 'string' }, | ||
type: 'object', | ||
// required: ['bits'], | ||
required: ['bitOffset', 'bitWidth'], | ||
properties: { | ||
bits: uint, | ||
// bits: uint, | ||
bitOffset: {oneOf: [expression, uint]}, // base % regWidth | ||
bitWidth: {oneOf: [expression, uint]}, // size | ||
name: id, | ||
@@ -25,0 +27,0 @@ desc: { type: 'string' }, |
{ | ||
"name": "duh-schema", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21203
406