Wondering what’s next for npm?Check out our public roadmap! »

    yaml-to-json-schema
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    yaml-to-json-schema

    Generate json schema from yaml (openapi, swagger, asyncapi...)

    Support

    Install

    # global
    npm install -g yaml-to-json-schema
    # in project
    npm install --save-dev yaml-to-json-schema
    

    Usage

    # global
    yaml-to-json-schema openapi.yaml
    # in project
    npx yaml-to-json-schema openapi.yaml
    

    Usage from repository

    git clone https://github.com/rhrn/yaml-to-json-schema.git
    cd yaml-to-json-schema
    npm install
    npm run build
    # command examples
    npx yaml-to-json-schema examples/asyncapi/sample.yaml | npx quicktype --src-lang schema --lang ts --just-types --acronym-style original -t AsyncapiSample
    npx yaml-to-json-schema examples/openapi/petstore-expanded.yaml | npx quicktype --src-lang schema --lang ts --just-types --acronym-style original -t PetstoreExpanded
    

    Output examples with use cases

    Useful tools

    Install

    npm i yaml-to-json-schema

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    BSD

    Unpacked Size

    35.3 kB

    Total Files

    19

    Last publish

    Collaborators

    • avatar