Created
July 15, 2023 17:40
-
-
Save bingomanatee/6f61934e34aaebbef76074d3919a223c to your computer and use it in GitHub Desktop.
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
import { v4 } from 'uuid' | |
export const sampleId = v4(); | |
export const ID_PROP = { | |
type: 'string', | |
maxLength: sampleId.length, | |
}; | |
export const INT = { | |
type: 'integer', | |
} | |
export const STRING = { | |
type: 'string' | |
} | |
export const LINK_POINT = { | |
type: 'object', | |
properties: { | |
x: INT, | |
y: INT, | |
basis: STRING | |
}, | |
required: ['basis'] | |
}; | |
export const STYLE = { | |
type: 'array', | |
items: { | |
type: 'object', | |
properties: { | |
name: { | |
type: 'string', | |
}, | |
value: { | |
type: ['number', 'string'] | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment