mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
Delete ts-openapi directory
This commit is contained in:
parent
db8b7490c7
commit
e4f12a45c7
18 changed files with 0 additions and 7251 deletions
|
@ -1,23 +0,0 @@
|
|||
# OpenAPI Generator Ignore
|
||||
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||
|
||||
# Use this file to prevent files from being overwritten by the generator.
|
||||
# The patterns follow closely to .gitignore or .dockerignore.
|
||||
|
||||
# As an example, the C# client generator defines ApiClient.cs.
|
||||
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||
#ApiClient.cs
|
||||
|
||||
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||
#foo/*/qux
|
||||
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||
|
||||
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||
#foo/**/qux
|
||||
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||
|
||||
# You can also negate patterns with an exclamation (!).
|
||||
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||
#docs/*.md
|
||||
# Then explicitly reverse the ignore rule for a single file:
|
||||
#!docs/README.md
|
|
@ -1 +0,0 @@
|
|||
4.3.1
|
|
@ -1,2 +0,0 @@
|
|||
# OpenAPI JSON
|
||||
This is a OpenAPI JSON built by the [openapi-generator](https://github.com/openapitools/openapi-genreator) project.
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"baseUrl": "http://localhost:3000/api"
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"name": "Using fixtures to represent data",
|
||||
"email": "hello@cypress.io",
|
||||
"body": "Fixtures are a great way to mock data for responses to routes"
|
||||
}
|
|
@ -1,19 +0,0 @@
|
|||
/// <reference types="cypress" />
|
||||
|
||||
describe("Basic API checks", () => {
|
||||
it("Should return a valid health payload", function () {
|
||||
cy.request("/hello").then(($response) => {
|
||||
cy.task("validateSwaggerSchema", {
|
||||
file: "./openapi.json",
|
||||
endpoint: "/hello",
|
||||
method: "get",
|
||||
statusCode: 200,
|
||||
responseSchema: $response.body,
|
||||
verbose: true,
|
||||
}).should("deep.equal", {});
|
||||
});
|
||||
});
|
||||
it("Get", function () {
|
||||
cy.request("/hello").its("body").eq("hello");
|
||||
});
|
||||
});
|
|
@ -1,7 +0,0 @@
|
|||
/// <reference types="cypress" />
|
||||
const { SwaggerValidation } = require("@jc21/cypress-swagger-validation");
|
||||
|
||||
module.exports = (on, config) => {
|
||||
on("task", SwaggerValidation(config));
|
||||
return config;
|
||||
};
|
|
@ -1 +0,0 @@
|
|||
require('@cypress/snapshot').register()
|
|
@ -1,20 +0,0 @@
|
|||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
// behavior that modifies Cypress.
|
||||
//
|
||||
// You can change the location of this file or turn off
|
||||
// automatically serving support files with the
|
||||
// 'supportFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/configuration
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
import './commands'
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
2
ts-openapi/next-env.d.ts
vendored
2
ts-openapi/next-env.d.ts
vendored
|
@ -1,2 +0,0 @@
|
|||
/// <reference types="next" />
|
||||
/// <reference types="next/types/global" />
|
|
@ -1,36 +0,0 @@
|
|||
{
|
||||
"openapi" : "3.0.3",
|
||||
"info" : {
|
||||
"title" : "ts-openapi",
|
||||
"version" : "1.0.0"
|
||||
},
|
||||
"servers" : [ {
|
||||
"url" : "http://localhost:3000/api"
|
||||
} ],
|
||||
"paths" : {
|
||||
"/hello" : {
|
||||
"get" : {
|
||||
"responses" : {
|
||||
"200" : {
|
||||
"content" : {
|
||||
"text/plain" : {
|
||||
"schema" : {
|
||||
"$ref" : "#/components/schemas/hello"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description" : "OK"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"components" : {
|
||||
"schemas" : {
|
||||
"hello" : {
|
||||
"pattern" : "^hello$",
|
||||
"type" : "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"$schema": "node_modules/@openapitools/openapi-generator-cli/config.schema.json",
|
||||
"spaces": 2,
|
||||
"generator-cli": {
|
||||
"version": "4.3.1"
|
||||
}
|
||||
}
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
"name": "ts-openapi",
|
||||
"version": "1.0.0",
|
||||
"main": "index.js",
|
||||
"author": "Kohei Watanabe <kou029w@gmail.com>",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@cypress/snapshot": "^2.1.7",
|
||||
"@jc21/cypress-swagger-validation": "^0.0.9",
|
||||
"@openapitools/openapi-generator-cli": "^2.0.3",
|
||||
"@types/react": "^16.9.51",
|
||||
"cypress": "^5.3.0",
|
||||
"next": "^9.5.3",
|
||||
"oatts-cypress": "^1.0.6",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"typescript": "^4.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^14.11.5"
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
import { NextApiRequest, NextApiResponse } from "next";
|
||||
|
||||
export default (req: NextApiRequest, res: NextApiResponse) => {
|
||||
console.log(req.body);
|
||||
res.end("hello");
|
||||
};
|
|
@ -1,3 +0,0 @@
|
|||
module.exports = {
|
||||
"__version": "5.3.0"
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
openapi: 3.0.3
|
||||
info:
|
||||
title: ts-openapi
|
||||
version: 1.0.0
|
||||
servers:
|
||||
- url: http://localhost:3000/api
|
||||
paths:
|
||||
/hello:
|
||||
get:
|
||||
responses:
|
||||
"200":
|
||||
description: "OK"
|
||||
content:
|
||||
text/plain:
|
||||
schema:
|
||||
$ref: "#/components/schemas/hello"
|
||||
components:
|
||||
schemas:
|
||||
hello:
|
||||
type: string
|
||||
pattern: ^hello$
|
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"lib": [
|
||||
"dom",
|
||||
"dom.iterable",
|
||||
"esnext"
|
||||
],
|
||||
"allowJs": true,
|
||||
"skipLibCheck": true,
|
||||
"strict": false,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"noEmit": true,
|
||||
"esModuleInterop": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"jsx": "preserve"
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.ts",
|
||||
"**/*.tsx"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules"
|
||||
]
|
||||
}
|
7044
ts-openapi/yarn.lock
7044
ts-openapi/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue