delimit-cli 2.3.1 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/README.md +81 -109
- package/adapters/codex-forge.js +107 -0
- package/adapters/codex-jamsons.js +142 -0
- package/adapters/codex-security.js +94 -0
- package/adapters/gemini-forge.js +109 -0
- package/bin/delimit-cli.js +70 -11
- package/package.json +2 -2
- package/tests/cli.test.js +359 -0
- package/tests/fixtures/openapi-changed.yaml +56 -0
- package/tests/fixtures/openapi.yaml +87 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
openapi: "3.0.3"
|
|
2
|
+
info:
|
|
3
|
+
title: Pet Store API
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
description: Sample API for Delimit quickstart
|
|
6
|
+
paths:
|
|
7
|
+
/pets:
|
|
8
|
+
get:
|
|
9
|
+
summary: List all pets
|
|
10
|
+
operationId: listPets
|
|
11
|
+
parameters:
|
|
12
|
+
- name: limit
|
|
13
|
+
in: query
|
|
14
|
+
required: false
|
|
15
|
+
schema:
|
|
16
|
+
type: integer
|
|
17
|
+
format: int32
|
|
18
|
+
responses:
|
|
19
|
+
"200":
|
|
20
|
+
description: A list of pets
|
|
21
|
+
content:
|
|
22
|
+
application/json:
|
|
23
|
+
schema:
|
|
24
|
+
type: array
|
|
25
|
+
items:
|
|
26
|
+
$ref: "#/components/schemas/Pet"
|
|
27
|
+
post:
|
|
28
|
+
summary: Create a pet
|
|
29
|
+
operationId: createPet
|
|
30
|
+
requestBody:
|
|
31
|
+
required: true
|
|
32
|
+
content:
|
|
33
|
+
application/json:
|
|
34
|
+
schema:
|
|
35
|
+
$ref: "#/components/schemas/Pet"
|
|
36
|
+
responses:
|
|
37
|
+
"201":
|
|
38
|
+
description: Pet created
|
|
39
|
+
/pets/{petId}:
|
|
40
|
+
get:
|
|
41
|
+
summary: Get a pet by ID
|
|
42
|
+
operationId: getPetById
|
|
43
|
+
parameters:
|
|
44
|
+
- name: petId
|
|
45
|
+
in: path
|
|
46
|
+
required: true
|
|
47
|
+
schema:
|
|
48
|
+
type: string
|
|
49
|
+
responses:
|
|
50
|
+
"200":
|
|
51
|
+
description: A single pet
|
|
52
|
+
content:
|
|
53
|
+
application/json:
|
|
54
|
+
schema:
|
|
55
|
+
$ref: "#/components/schemas/Pet"
|
|
56
|
+
delete:
|
|
57
|
+
summary: Delete a pet
|
|
58
|
+
operationId: deletePet
|
|
59
|
+
parameters:
|
|
60
|
+
- name: petId
|
|
61
|
+
in: path
|
|
62
|
+
required: true
|
|
63
|
+
schema:
|
|
64
|
+
type: string
|
|
65
|
+
responses:
|
|
66
|
+
"204":
|
|
67
|
+
description: Pet deleted
|
|
68
|
+
components:
|
|
69
|
+
schemas:
|
|
70
|
+
Pet:
|
|
71
|
+
type: object
|
|
72
|
+
required:
|
|
73
|
+
- id
|
|
74
|
+
- name
|
|
75
|
+
properties:
|
|
76
|
+
id:
|
|
77
|
+
type: string
|
|
78
|
+
name:
|
|
79
|
+
type: string
|
|
80
|
+
tag:
|
|
81
|
+
type: string
|
|
82
|
+
status:
|
|
83
|
+
type: string
|
|
84
|
+
enum:
|
|
85
|
+
- available
|
|
86
|
+
- pending
|
|
87
|
+
- adopted
|