Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
@avocode/octopus-schema
Advanced tools
The file `openapi.json` describes the Octopus document format in the OpenAPI v3.1 RC format. "Octopus" in this context refers to the JSON representation of a single design file artboard content.
The file openapi.json
describes the Octopus document format in the OpenAPI v3.1 RC format. "Octopus" in this context refers to the JSON representation of a single design file artboard content.
The specification includes a definition for a fake GET /
endpoint which returns the OctopusDocument
root schema. This allows the linter to properly detect unused schema components.
openapi.json#/info/version
.This repository is released to NPM as @avocode/octopus-schema
.
yarn add --exact --dev @avocode/octopus-schema
import { Octopus } from '@avocode/octopus-schema'
function processOctopus(data: Octopus.OctopusDocument) {
if (data['layer']) {
data['layers'].forEach((layerData) => {
processLayer(layerData)
})
}
}
function processLayer(layerData: Octopus.Layer) {
console.log(layerData)
}
cp $(node -e 'console.log(require.resolve("@avocode/octopus-schema/openapi.json"))') ./octopus.json
octopus.json
file.{
"info": {},
"components": {
"OctopusDocument": "./octopus.json#/components/schemas/OctopusDocument"
}
}
openapi.json
file is edited by hand.openapi.json
specification via openapi-typescript which can be run as yarn build:ts
.yarn lint:prettier
(or as yarn lint:prettier -w
for auto-fix).openapi.json
) is validated via Spectral which can be run as yarn validate:openapi
.yarn publish
openapi.json#/openapi
version field states the version of 3.0.2
instead of 3.1.x
which allows the Spectral linter to process the file. Support for OpenAPI v3.1 is not currently included in the linter. (The feature from v3.1 which is important for us is the ability to specify siblings of $ref
types. This allows us to reuse types while overriding their descriptions.)FAQs
The file `openapi.json` describes the Octopus document format in the OpenAPI v3.1 RC format. "Octopus" in this context refers to the JSON representation of a single design file artboard content.
We found that @avocode/octopus-schema demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.