@allgemein/schema-api
Version:
Library for schema api
35 lines (19 loc) • 917 B
Markdown
# @allgemein/schema-api
[](https://app.circleci.com/pipelines/github/allgemein-node/schema-api)
[](https://codecov.io/gh/allgemein-node/schema-api)
[](https://david-dm.org/allgemein-node/schema-api)
With the decorators
@Entity
@Property
@PropertyOf
@Schema
@Object
can be used to define a instancable json schema.
This can be analysed and dynamically used to instance differetn kind of models.
Transformations:
internal runtime structure -> json schema
json schema -> internal runtime structure
annotation -> internal runtime structure
json schema -> generate classes ES6 + TS
generate classes ES6 + TS -> runtime loading
generate classes ES6 + TS -> json schema