Back

Version 136

9/28/2023
// set at Thu Sep 28 2023 01:25:32 GMT+0000 (Coordinated Universal Time)
let vtOpenAPI =
'openapi: 3.1.0\ninfo:\n title: Val Town API\n description: |\n The Val Town API provides services to evaluate JavaScript and TypeScript expressions, run vals as APIs, either as functions or Express handlers.\n\n Learn more at [https://docs.val.town](https://docs.val.town)\n version: 1.7.0\nservers:\n - url: https://api.val.town\n description: Val Town API v1\n\ncomponents:\n securitySchemes:\n bearerAuth:\n type: http\n scheme: bearer\n bearerFormat: API Key\n schemas:\n JSON:\n oneOf:\n - type: string\n - type: number\n - type: object\n - type: array\n items: {}\n - type: boolean\n description: "Can be anything: string, number, array, object, etc., including `null`"\n Relationship:\n type: string\n enum: ["received", "given", "any"]\n Privacy:\n type: string\n enum: ["public", "private"]\n Author:\n type: object\n properties:\n id:\n description: The user\'s id\n type: string\n format: uuid\n username:\n description: The user\'s username\n type: string\n User:\n type: object\n allOf:\n - $ref: "#/components/schemas/Author"\n properties:\n bio:\n description: The user\'s bio\n type:\n - string\n - "null"\n profileImageUrl:\n description: The url for the user\'s profile picture\n type:\n - string\n - "null"\n BaseVal:\n type: object\n properties:\n id:\n type: string\n format: uuid\n author:\n $ref: "#/components/schemas/Author"\n name:\n type: string\n code:\n type: string\n public:\n type: boolean\n deprecated: true\n privacy:\n $ref: "#/components/schemas/Privacy"\n version:\n type: integer\n format: int32\n runEndAt:\n type: string\n format: date-time\n runStartAt:\n type: string\n format: date-time\n FullVal:\n type: object\n
Updated: May 2, 2024