Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

prisma/prisma1-json-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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'