forked from MapComplete/MapComplete
		
	Improve jsonSchema
This commit is contained in:
		
							parent
							
								
									9efceb4751
								
							
						
					
					
						commit
						dc6c35565e
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -5,9 +5,11 @@ import {readFileSync, writeFileSync} from "fs";
 | 
			
		|||
 * Extracts the data from the scheme file and writes them in a flatter structure
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
interface JsonSchema {
 | 
			
		||||
export type JsonSchemaType = string | {$ref: string, description: string} | {type: string} | JsonSchemaType[]
 | 
			
		||||
 | 
			
		||||
export interface JsonSchema {
 | 
			
		||||
    description?: string,
 | 
			
		||||
    type?: string,
 | 
			
		||||
    type?: JsonSchemaType,
 | 
			
		||||
    properties?: any,
 | 
			
		||||
    items?: JsonSchema,
 | 
			
		||||
    allOf?: JsonSchema[],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue