snobject
v0.1.8
Published
Unofficial and incomplete description of naked objects using json schema.
Downloads
4
Readme
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
|| :white_check_mark: Yes|
|addSchema|Snobject.addSchema
|| :white_check_mark: Yes|
|validate|Snobject.validate
|| :white_check_mark: Yes|
Additional properties are allowed.
Snobject.version
- Type:
Snobject.version
- Required: No
Snobject.license
- Type:
Snobject.license
- Required: No
Snobject.getSchema :white_check_mark:
- Type:
Snobject.getSchema
- Required: Yes
Snobject.addSchema :white_check_mark:
- Type:
Snobject.addSchema
- Required: Yes
Snobject.validate :white_check_mark:
- Type:
Snobject.validate
- Required: Yes