mirror of
https://github.com/LukeHagar/openapi-types.git
synced 2025-12-06 04:20:29 +00:00
Add new OpenAPI 2.0 and 3.0 specifications, including comprehensive type definitions and example files. Update .gitignore and bunfig.toml, and remove obsolete MIGRATION.md. Enhance README with additional usage examples and clarify type definitions.
This commit is contained in:
212
package.json
212
package.json
@@ -1,116 +1,100 @@
|
||||
{
|
||||
"name": "oas-types",
|
||||
"version": "1.0.0",
|
||||
"description": "Comprehensive TypeScript definitions for all OpenAPI specification versions (Swagger 2.0, OpenAPI 3.0.0, 3.1.0, 3.1.1)",
|
||||
"main": "index.ts",
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"types": "index.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./index.ts",
|
||||
"import": "./index.ts"
|
||||
},
|
||||
"./atoms": {
|
||||
"types": "./src/atoms/index.ts",
|
||||
"import": "./src/atoms/index.ts"
|
||||
},
|
||||
"./utils": {
|
||||
"types": "./src/utils/index.ts",
|
||||
"import": "./src/utils/index.ts"
|
||||
},
|
||||
"./common": {
|
||||
"types": "./src/common.ts",
|
||||
"import": "./src/common.ts"
|
||||
},
|
||||
"./2.0": {
|
||||
"types": "./src/swagger-2.0/index.ts",
|
||||
"import": "./src/swagger-2.0/index.ts"
|
||||
},
|
||||
"./3.0.0": {
|
||||
"types": "./src/3.0.0/index.ts",
|
||||
"import": "./src/3.0.0/index.ts"
|
||||
},
|
||||
"./3.0.1": {
|
||||
"types": "./src/3.0.1/index.ts",
|
||||
"import": "./src/3.0.1/index.ts"
|
||||
},
|
||||
"./3.0.2": {
|
||||
"types": "./src/3.0.2/index.ts",
|
||||
"import": "./src/3.0.2/index.ts"
|
||||
},
|
||||
"./3.0.3": {
|
||||
"types": "./src/3.0.3/index.ts",
|
||||
"import": "./src/3.0.3/index.ts"
|
||||
},
|
||||
"./3.0.4": {
|
||||
"types": "./src/3.0.4/index.ts",
|
||||
"import": "./src/3.0.4/index.ts"
|
||||
},
|
||||
"./3.1.0": {
|
||||
"types": "./src/3.1.0/index.ts",
|
||||
"import": "./src/3.1.0/index.ts"
|
||||
},
|
||||
"./3.1.1": {
|
||||
"types": "./src/3.1.1/index.ts",
|
||||
"import": "./src/3.1.1/index.ts"
|
||||
},
|
||||
},
|
||||
"files": [
|
||||
"src/",
|
||||
"index.ts",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"keywords": [
|
||||
"openapi",
|
||||
"swagger",
|
||||
"typescript",
|
||||
"types",
|
||||
"definitions",
|
||||
"api",
|
||||
"specification",
|
||||
"swagger-2.0",
|
||||
"openapi-3.0.0",
|
||||
"openapi-3.1.0",
|
||||
"openapi-3.1.1",
|
||||
"json-schema",
|
||||
"rest",
|
||||
"api-documentation"
|
||||
],
|
||||
"author": "OpenAPI Types Contributors",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/your-username/openapi-types.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/your-username/openapi-types/issues"
|
||||
},
|
||||
"homepage": "https://github.com/your-username/openapi-types#readme",
|
||||
"dependencies": {
|
||||
"spdx-license-list": "^6.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "bun test",
|
||||
"test:watch": "bun test --watch",
|
||||
"test:coverage": "bun test --coverage",
|
||||
"test:common": "bun test tests/common.test.ts",
|
||||
"test:open-enums": "bun test tests/open-enums.test.ts",
|
||||
"test:swagger-2.0": "bun test tests/swagger-2.0.test.ts",
|
||||
"test:openapi-3.0.0": "bun test tests/openapi-3.0.0.test.ts",
|
||||
"test:integration": "bun test tests/integration.test.ts",
|
||||
"type-check": "tsc --noEmit",
|
||||
"build": "tsc",
|
||||
"dev": "bun run --watch index.ts"
|
||||
}
|
||||
"name": "oas-types",
|
||||
"version": "1.0.0",
|
||||
"description": "Comprehensive TypeScript definitions for all OpenAPI specification versions (Swagger 2.0, OpenAPI 3.0.x, 3.1.x, 3.2.0)",
|
||||
"main": "index.ts",
|
||||
"module": "index.ts",
|
||||
"type": "module",
|
||||
"types": "index.ts",
|
||||
"author": {
|
||||
"name": "Luke Hagar",
|
||||
"email": "lukeslakemail@gmail.com",
|
||||
"url": "https://lukehagar.com/"
|
||||
},
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/lukehagar/openapi-types.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/lukehagar/openapi-types/issues"
|
||||
},
|
||||
"homepage": "https://github.com/lukehagar/openapi-types#readme",
|
||||
"scripts": {
|
||||
"test": "bun test",
|
||||
"test:watch": "bun test --watch",
|
||||
"test:coverage": "bun test --coverage",
|
||||
"test:common": "bun test tests/common.test.ts",
|
||||
"test:open-enums": "bun test tests/open-enums.test.ts",
|
||||
"test:swagger-2.0": "bun test tests/swagger-2.0.test.ts",
|
||||
"test:openapi-3.0.0": "bun test tests/openapi-3.0.0.test.ts",
|
||||
"test:integration": "bun test tests/integration.test.ts",
|
||||
"type-check": "tsc --noEmit",
|
||||
"build": "tsc",
|
||||
"dev": "bun run --watch index.ts",
|
||||
"lint": "biome check .",
|
||||
"lint:fix": "biome check --write ."
|
||||
},
|
||||
"dependencies": {
|
||||
"spdx-license-list": "^6.10.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "^2.2.4",
|
||||
"@types/bun": "latest",
|
||||
"tsd": "^0.33.0",
|
||||
"typescript": "^5.9.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./index.ts",
|
||||
"import": "./index.ts"
|
||||
},
|
||||
"./2.0": {
|
||||
"types": "./2.0/index.ts",
|
||||
"import": "./2.0/index.ts"
|
||||
},
|
||||
"./3.0": {
|
||||
"types": "./3.0/index.ts",
|
||||
"import": "./3.0/index.ts"
|
||||
},
|
||||
"./3.1": {
|
||||
"types": "./3.1/index.ts",
|
||||
"import": "./3.1/index.ts"
|
||||
},
|
||||
"./3.2": {
|
||||
"types": "./3.2/index.ts",
|
||||
"import": "./3.2/index.ts"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"2.0/",
|
||||
"3.0/",
|
||||
"3.1/",
|
||||
"3.2/",
|
||||
"License.ts",
|
||||
"SPDXLicenseList.ts",
|
||||
"MIGRATION.md",
|
||||
"index.ts",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"keywords": [
|
||||
"openapi",
|
||||
"swagger",
|
||||
"typescript",
|
||||
"types",
|
||||
"definitions",
|
||||
"api",
|
||||
"specification",
|
||||
"swagger-2.0",
|
||||
"openapi-3.0",
|
||||
"openapi-3.1",
|
||||
"openapi-3.2",
|
||||
"json-schema",
|
||||
"rest",
|
||||
"api-documentation"
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user