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

0.1.3 • Public • Published

prisma-json-schema

JSON schema of prisma.yml files

CircleCI npm version

Usage

JSON Schema

As hosted URL

You can use the following URL for the current JSON schema file:

https://raw.githubusercontent.com/prisma/prisma-json-schema/master/src/schema.json

Import as file in Node

const schema = require('prisma-json-schema/dist/schema.json')

Usage with VSCode

Add the following to your settings:

{
  "yaml.schemas": {
    "https://raw.githubusercontent.com/prisma/prisma-json-schema/master/src/schema.json":
      "prisma.yml"
  }
}

Typescript Definitions

yarn add prisma-json-schema
import { PrismaDefinition } from 'prisma-json-schema'

Readme

Keywords

none

Package Sidebar

Install

npm i prisma-json-schema

Weekly Downloads

25,960

Version

0.1.3

License

none

Unpacked Size

16.8 kB

Total Files

7

Last publish

Collaborators

  • timsuchanek