forked from MapComplete/MapComplete
Studio: first draft of layer editing
This commit is contained in:
parent
9661ade80c
commit
069767b9c7
43 changed files with 45374 additions and 5403 deletions
20
UI/Studio/jsonSchema.ts
Normal file
20
UI/Studio/jsonSchema.ts
Normal file
|
@ -0,0 +1,20 @@
|
|||
/**
|
||||
* Extracts the data from the scheme file and writes them in a flatter structure
|
||||
*/
|
||||
|
||||
export type JsonSchemaType =
|
||||
| string
|
||||
| { $ref: string; description: string }
|
||||
| { type: string }
|
||||
| JsonSchemaType[]
|
||||
export interface JsonSchema {
|
||||
description?: string
|
||||
type?: JsonSchemaType
|
||||
properties?: any
|
||||
items?: JsonSchema
|
||||
allOf?: JsonSchema[]
|
||||
anyOf: JsonSchema[]
|
||||
enum: JsonSchema[]
|
||||
$ref: string
|
||||
required: string[]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue