a draft of a lexicon for classified-style listings, like what you'd find on Craigslist or Facebook Marketplace. very raw. we want something flexible, extensible, and that provides as much context as possible. i imagine as this is fleshed out we'd end up with some lexicon tokens and such. an open design space is with the location -- how do we best integrate location storage so that it can be efficiently leveraged by the backend? so many open questions.
wip.lexicon.marketplace.listing edited
45 lines 1.2 kB view raw
1{ 2 "lexicon": 1, 3 "id": "wip.lexicon.marketplace.listing", 4 "defs": { 5 "main": { 6 "type": "record", 7 "description": "A generic listing of some sort", 8 "key": "tid", 9 "record": { 10 "type": "object", 11 "required": ["name", "description", "region", "createdAt"], 12 "properties": { 13 "name": { 14 "type": "string", 15 "description": "The name of the listing" 16 }, 17 "description": { 18 "type": "string", 19 "description": "The description of the listing" 20 }, 21 "region": { 22 "type": "string", 23 "description": "Where the listing is located generally" 24 }, 25 "postalCode": { 26 "type": "string", 27 "description": "A more specific location identifier" 28 }, 29 "price": { 30 "type": "string", 31 "description": "How much the listing is" 32 }, 33 "offers": { 34 "type": "bool", 35 "description": "Whether offers are accepted for this listing" 36 }, 37 "createdAt": { 38 "type": "string", 39 "format": "datetime" 40 }, 41 } 42 } 43 } 44 } 45}