Created
November 14, 2014 14:30
-
-
Save ca0v/c9504ef893015a7dce39 to your computer and use it in GitHub Desktop.
typescript definition for json schema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'interfaces/json-schema' { | |
interface IDependencyDescriptor { | |
[s: string]: string; | |
} | |
interface IPropertyDescriptor { | |
[s: string]: { | |
'$ref'?: string; | |
type?: string; | |
format?: string; | |
description?: string; | |
}; | |
} | |
export interface IJsonSchema { | |
type: string; | |
properties: IPropertyDescriptor; | |
required?: Array<string>; | |
dependencies?: IDependencyDescriptor; | |
id?: string; | |
'$schema'?: string; | |
description?: string; | |
title?: string; | |
definitions?: any; | |
} | |
export interface IJsonSchemaModel { | |
[s: string]: IJsonSchema; | |
} | |
//export = IJsonSchema; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment