Skip to content

Instantly share code, notes, and snippets.

@bingomanatee
Created July 15, 2023 17:40
Show Gist options
  • Save bingomanatee/6f61934e34aaebbef76074d3919a223c to your computer and use it in GitHub Desktop.
Save bingomanatee/6f61934e34aaebbef76074d3919a223c to your computer and use it in GitHub Desktop.
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