Skip to content

Instantly share code, notes, and snippets.

@Arithmomaniac
Created September 16, 2024 16:53
Show Gist options
  • Save Arithmomaniac/150cf23eb89141c92d3663cd49d080b1 to your computer and use it in GitHub Desktop.
Save Arithmomaniac/150cf23eb89141c92d3663cd49d080b1 to your computer and use it in GitHub Desktop.
tsp-openapi3: common parameters not imported
openapi: 3.0.0
info:
title: (title)
version: 0.0.0
tags: []
paths:
/widgets/{id}:
get:
operationId: Widgets_read
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Widget'
delete:
operationId: Widgets_delete
responses:
'204':
description: 'There is no content to send for this request, but the headers may be useful. '
parameters:
- name: id
in: path
required: true
schema:
type: string
components:
schemas:
Widget:
type: object
required:
- id
properties:
id:
type: string
openapi: 3.0.0
info:
title: (title)
version: 0.0.0
tags: []
paths:
/widgets/{id}:
get:
operationId: Widgets_read
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: The request has succeeded.
content:
application/json:
schema:
$ref: '#/components/schemas/Widget'
delete:
operationId: Widgets_delete
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'204':
description: 'There is no content to send for this request, but the headers may be useful. '
components:
schemas:
Widget:
type: object
required:
- id
properties:
id:
type: string
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment