All Projects → loyd → flow2schema

loyd / flow2schema

Licence: other
Generate json-schemas for flowtype definitions

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to flow2schema

Aptos
☀️ A tool for validating data using JSON Schema and converting JSON Schema documents into different data-interchange formats
Stars: ✭ 144 (+620%)
Mutual labels:  avro, json-schema
Schema Registry
Confluent Schema Registry for Kafka
Stars: ✭ 1,647 (+8135%)
Mutual labels:  avro, json-schema
jsonSchema-to-uml
A tool to generate UML class diagrams from JSON schema documents
Stars: ✭ 33 (+65%)
Mutual labels:  json-schema
kafka-serialization
Lego bricks to build Apache Kafka serializers and deserializers
Stars: ✭ 122 (+510%)
Mutual labels:  avro
kafka-avro-confluent
Kafka De/Serializer using avro and Confluent's Schema Registry
Stars: ✭ 18 (-10%)
Mutual labels:  avro
jsonschema
A node package based on jsonschema-rs for performing JSON schema validation
Stars: ✭ 48 (+140%)
Mutual labels:  json-schema
robotframework-jsonvalidator
Robot Framework library for JSON validation
Stars: ✭ 21 (+5%)
Mutual labels:  json-schema
avrow
Avrow is a pure Rust implementation of the avro specification https://avro.apache.org/docs/current/spec.html with Serde support.
Stars: ✭ 27 (+35%)
Mutual labels:  avro
php-kafka-lib
PHP Kafka producer / consumer library with PHP Avro support, based on php-rdkafka
Stars: ✭ 38 (+90%)
Mutual labels:  avro
nz-schema-form
ng-zorro-antd form generation based on JSON-Schema
Stars: ✭ 40 (+100%)
Mutual labels:  json-schema
format-to-json
An algorithm that can format a string to json-like template. 字符串JSON格式化的算法。
Stars: ✭ 30 (+50%)
Mutual labels:  json-schema
graphql-to-json-schema
GraphQL Schema to JSON Schema
Stars: ✭ 146 (+630%)
Mutual labels:  json-schema
singlestore-logistics-sim
Scalable package delivery logistics simulator built using SingleStore and Vectorized Redpanda
Stars: ✭ 31 (+55%)
Mutual labels:  avro
columnify
Make record oriented data to columnar format.
Stars: ✭ 28 (+40%)
Mutual labels:  avro
babl
JSON templating on steroids
Stars: ✭ 29 (+45%)
Mutual labels:  json-schema
react-jsonschema-formbuilder
No description or website provided.
Stars: ✭ 45 (+125%)
Mutual labels:  json-schema
typescript-to-json-schema
Generate JSON schema from your Typescript sources
Stars: ✭ 54 (+170%)
Mutual labels:  json-schema
prisma-json-schema-generator
A generator for Prisma 2 to generate a valid JSON Schema (v7)
Stars: ✭ 145 (+625%)
Mutual labels:  json-schema
json-schema-core
A framework for building JSON Schema validators
Stars: ✭ 26 (+30%)
Mutual labels:  json-schema
scalable-form-platform
A solution for building dynamic web forms with visual editor
Stars: ✭ 109 (+445%)
Mutual labels:  json-schema

flow2schema

Version npm Linux Build Windows Build Coverage Status

Example

$ cat example.js
type A<T, K> = {
    t: T,
    k: K,
};

export type X = {
    a: A<string, boolean>,
    b: number,
};
$ flow2schema -t json-schema example.js
{
    "$schema": "http://json-schema.org/draft-06/schema#",
    "definitions": {
        "example::A::string::boolean": {
            "type": "object",
            "properties": {
                "t": {"type": "string"},
                "k": {"type": "boolean"}
            },
            "required": ["t", "k"]
        },
        "example::X": {
            "type": "object",
            "properties": {
                "a": {"$ref": "#/definitions/example::A::string::boolean"},
                "b": {"type": "number"}
            },
            "required": ["a", "b"]
        }
    }
}

TODO

  • Complete generics support.
  • Errors and warnings.
  • Complete commonjs support.
  • Documentation.
  • Stabilize API.
  • Webpack plugin.
  • Rollup plugin.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].