0.9.1 • Published 3 years ago

synctype v0.9.1

Weekly downloads
-
License
BSD-3-Clause
Repository
-
Last release
3 years ago

synctype

Features

  • Datatype – defines parsable data types from primitives

  • Model – model definitions

    • Dependency - name-vers, name@vers, name+url, name+repo, name+git
    • Type -
      • kind – kind of type, along with other docs
      • impl – generated class if needed
      • Prop
        • Value
          • datatype
        • One
          • imp – implicit
          • dstType - valid types
        • Many
          • key – key
          • dstType
      • Meth – method model
        • Arg – model of the argument
        • Ret - Return type of the method
      • Event – event model – Arg – arguments of events
      • Permit – permits to authorize usage, and also to scope the return
      • Process – lifecycle/workflow/process flows
        • State - state within
          • Cond - conditions for slot
          • Action - transition actions to other states (methods)
          • entering/enter/leaving/leave -
  • Plugins

    • Accessors – defining accessors and collections
    • Records - defining classes from types
    • Class – getting types from classes
    • JSON – reading and writing from JSON
    • Binary – reading and writing from binary data
    • JSON Schema
      • Defining types from schema
      • Defining schema from types
    • Other formats: OpenAPI/Swagger, GraphQL, Avro, Thirft, gRPC, etc.
    • Typescript definitions
    • API – create APIs
      • REST/GraphQL APIs from types
    • UI – Generate UIs from types
      • Tables, search, sort, etc.
      • CRUD forms
      • Process: kanban lists, inboxes + actions, notifications
    • YAML - annotation and docs for types
    • Maps to APIs -
      • Types can be mapped along with modeled
    • SQL – mappings to SQL tables and joins, operations
      • Map between types and schema
      • Define types from schema, with rules and annos
      • Define schema from types, with rules and annos