UNPKG

@sprucelabs/schema

Version:

Static and dynamic binding plus runtime validation and transformation to ensure your app is sound. 🤓

21 lines (20 loc) • 400 B
export default class AbstractEntity { get schemaId() { return this.schema.id; } get name() { return this.schema.name; } get namespace() { return this.schema.name; } get version() { return this.schema.version; } get description() { return this.schema.id; } constructor(schema) { this.schema = schema; } }