Skip to content

Instantly share code, notes, and snippets.

@WietseWind
Last active January 30, 2023 12:38
Show Gist options
  • Save WietseWind/83cd89906ed79fb510ec1eae3fc70bb6 to your computer and use it in GitHub Desktop.
Save WietseWind/83cd89906ed79fb510ec1eae3fc70bb6 to your computer and use it in GitHub Desktop.
XLS35 Schema Proposal
export interface xls35category {
code: string
description: string
}
// EXAMPLES (!)
export const xls35categories: xls35category[] = [
{ code: '0000', description: 'Testing-purpose token' },
{ code: '0001', description: 'Art' },
{ code: '0001.0001', description: 'Physical art' },
{ code: '0001.0002', description: 'Digital art' },
{ code: '0002', description: 'Licenses' },
{ code: '0002.0001', description: 'Software licenses' },
{ code: '0003', description: 'Admission tickets' },
{ code: '0004', description: 'Ownership (physical)' },
{ code: '0004.0001', description: 'Land (plots)' },
{ code: '0004.0002', description: 'Time shares' },
]
export interface xls35attachment {
description?: string
filename: string
url: string
}
export interface xls35schema {
// Custom schema for additional information
schema?: {
url: string
digest?: string
}
// Custom external information, to match your own specified schema (^^)
content?: {
url: string
digest?: string
}
// Basic information: to allow instant rendering, ...
details: {
title: string
categories?: xls35category[]
publisher?: {
name: string
url?: string
email?: string
}
previewUrl?: {
thumbnail: string
regular?: string
highres?: string
}
group?: {
code?: string
title: string
}
attachments?: xls35attachment[]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment