Snobject
Snobject aka (JSON) Schema Naked Object is a software architecture pattern based on json schema and naked object. This Javascript reference implementation provides strong object-orientation principles to Javascript objects. Each snobject is self contained and self describing, managing all of its own resources and interfaces.
Each snobject includes it's own json schema, accessible through the getSchema
, addSchema
, and validate
methods. This level of introspection combines code comments and API documentation into a single, runtime-accessible location.
Properties
Type | Description | Required | |
---|---|---|---|
version | Snobject.version |
No | |
license | Snobject.license |
No | |
getSchema | Snobject.getSchema |
✅ Yes | |
addSchema | Snobject.addSchema |
✅ Yes | |
validate | Snobject.validate |
✅ Yes |
Additional properties are allowed.
Snobject.version
- Type:
Snobject.version
- Required: No
Snobject.license
- Type:
Snobject.license
- Required: No
Snobject.getSchema ✅
- Type:
Snobject.getSchema
- Required: Yes
Snobject.addSchema ✅
- Type:
Snobject.addSchema
- Required: Yes
Snobject.validate ✅
- Type:
Snobject.validate
- Required: Yes