mirror of
https://github.com/LukeHagar/aperture.git
synced 2025-12-06 04:19:09 +00:00
90 lines
2.7 KiB
JSON
90 lines
2.7 KiB
JSON
{
|
|
"name": "aperture",
|
|
"displayName": "Aperture",
|
|
"description": "OpenAPI JSON/YAML IntelliSense + custom linting (types-first; no Spectral/Swagger-Parser).",
|
|
"version": "0.0.1",
|
|
"publisher": "LukeHagar",
|
|
"engines": { "vscode": "^1.104.0" },
|
|
|
|
"categories": ["Linters"],
|
|
"activationEvents": ["onLanguage:yaml", "onLanguage:yml", "onLanguage:json"],
|
|
"main": "./dist/client/extension.js",
|
|
|
|
"contributes": {
|
|
"configuration": {
|
|
"title": "Aperture (OpenAPI LSP)",
|
|
"properties": {
|
|
"openapiLsp.enableTypeProfile": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Also run a TypeScript-based type-profile check using @your/openapi-types .d.ts (optional)."
|
|
},
|
|
"openapiLsp.versionPreference": {
|
|
"type": "string",
|
|
"enum": ["auto", "3.2", "3.1", "3.0", "2.0"],
|
|
"default": "auto",
|
|
"description": "Force a schema version instead of auto-detection."
|
|
},
|
|
"openapiLsp.enableCustomRules": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Enable custom OpenAPI validation rules."
|
|
},
|
|
"openapiLsp.maxFileSize": {
|
|
"type": "number",
|
|
"default": 5,
|
|
"description": "Maximum file size in MB before validation is skipped."
|
|
},
|
|
"openapiLsp.debounceDelay": {
|
|
"type": "number",
|
|
"default": 300,
|
|
"description": "Delay in milliseconds before validation runs after document changes."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
"scripts": {
|
|
"clean": "rimraf dist",
|
|
"build:client": "tsc -p tsconfig.client.json",
|
|
"build:server": "tsc -p tsconfig.server.json",
|
|
"build": "npm run clean && npm run build:server && npm run build:client",
|
|
"watch:client": "tsc -w -p tsconfig.client.json",
|
|
"watch:server": "tsc -w -p tsconfig.server.json",
|
|
"watch": "run-p watch:server watch:client",
|
|
"package": "npm run build && vsce package",
|
|
"prepublishOnly": "npm run build"
|
|
},
|
|
|
|
"devDependencies": {
|
|
"@types/node": "^24.5.2",
|
|
"@types/vscode": "^1.104.0",
|
|
"@vscode/vsce": "^3.6.1",
|
|
"npm-run-all": "^4.1.5",
|
|
"rimraf": "^6.0.1",
|
|
"typescript": "^5.9.2",
|
|
"vsce": "^2.15.0"
|
|
},
|
|
|
|
"dependencies": {
|
|
"@your/openapi-types": "file:./mock-types",
|
|
"vscode-languageclient": "^8.1.0",
|
|
"vscode-languageserver": "^8.1.0",
|
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
"vscode-json-languageservice": "^5.6.1",
|
|
"yaml-language-server": "^1.19.1",
|
|
"yaml": "^2.3.4",
|
|
"jsonc-parser": "^3.2.0"
|
|
},
|
|
|
|
"files": [
|
|
"dist/**/*",
|
|
"README.md"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/LukeHagar/aperture.git"
|
|
},
|
|
"license": "MIT"
|
|
}
|