Skip to content

type checking - tcomb or other #11

@danalexilewis

Description

@danalexilewis

After reading @ahdinosaur comment in the feathers action issue: #9 (comment) I went and did a little reading around json-schema and type checking.

gcanti did publish a module for json-schema to tcomb and in an issue a zerkalica asks about ajv - commenting that it has more feature but is too bloated for front end (200kb at time). https://github.com/epoberezkin/ajv

I looked at ajv and thought that it looked active and I started wondering if this would be a good alternative for tcomb for us.

Main benefit I see is using json-schema to define our types rather then tcomb objects. json-schema is obviously more established and is used in other languages. We could then also look to develop a json schema as part of our discovery phase.

Main flaw is maybe its size - though given we are using other bloated libraries I don't think this matters to much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions