Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
35
repos/effect/packages/tools/openapi-generator/test/fixtures/cli-basic-spec.json
vendored
Normal file
35
repos/effect/packages/tools/openapi-generator/test/fixtures/cli-basic-spec.json
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"openapi": "3.0.0",
|
||||
"info": {
|
||||
"title": "CLI Basic API",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"paths": {
|
||||
"/users": {
|
||||
"get": {
|
||||
"operationId": "listUsers",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "List users",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
"schemas": {},
|
||||
"securitySchemes": {}
|
||||
},
|
||||
"security": [],
|
||||
"tags": []
|
||||
}
|
||||
57
repos/effect/packages/tools/openapi-generator/test/fixtures/cli-warning-spec.json
vendored
Normal file
57
repos/effect/packages/tools/openapi-generator/test/fixtures/cli-warning-spec.json
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"openapi": "3.0.0",
|
||||
"info": {
|
||||
"title": "CLI Warning API",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"paths": {
|
||||
"/users/{id}": {
|
||||
"get": {
|
||||
"operationId": "getUser",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "session",
|
||||
"in": "cookie",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "User response",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["id"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"components": {
|
||||
"schemas": {},
|
||||
"securitySchemes": {}
|
||||
},
|
||||
"security": [],
|
||||
"tags": []
|
||||
}
|
||||
7
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/invalid-op.json
vendored
Normal file
7
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/invalid-op.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{
|
||||
"op": "copy",
|
||||
"from": "/info/title",
|
||||
"path": "/info/x-title"
|
||||
}
|
||||
]
|
||||
6
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/missing-path.json
vendored
Normal file
6
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/missing-path.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"op": "add",
|
||||
"value": "test"
|
||||
}
|
||||
]
|
||||
6
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/missing-value.json
vendored
Normal file
6
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/missing-value.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/info/x-missing"
|
||||
}
|
||||
]
|
||||
8
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-add.json
vendored
Normal file
8
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-add.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/info/x-custom",
|
||||
"value": "custom-value",
|
||||
"description": "Add custom extension"
|
||||
}
|
||||
]
|
||||
17
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-multiple.json
vendored
Normal file
17
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-multiple.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/info/title",
|
||||
"value": "My Custom API"
|
||||
},
|
||||
{
|
||||
"op": "add",
|
||||
"path": "/info/x-generator",
|
||||
"value": "effect-openapi"
|
||||
},
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/info/version",
|
||||
"value": "2.0.0"
|
||||
}
|
||||
]
|
||||
6
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-patch.yaml
vendored
Normal file
6
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-patch.yaml
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
- op: replace
|
||||
path: /info/title
|
||||
value: YAML Patched Title
|
||||
- op: add
|
||||
path: /info/x-yaml-patch
|
||||
value: true
|
||||
6
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-remove.json
vendored
Normal file
6
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-remove.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
[
|
||||
{
|
||||
"op": "remove",
|
||||
"path": "/paths/~1deprecated"
|
||||
}
|
||||
]
|
||||
7
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-replace.json
vendored
Normal file
7
repos/effect/packages/tools/openapi-generator/test/fixtures/patches/valid-replace.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
[
|
||||
{
|
||||
"op": "replace",
|
||||
"path": "/info/title",
|
||||
"value": "Updated API Title"
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user