Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
swagger-include
Advanced tools
api.yml
swagger: "2.0"
info:
version: 1.0.0
title: Swagger Petstore
includes:
- './pet.yml'
definitions:
Category:
type: object
properties:
id:
type: integr
format: int64
name:
type: string
pet.yml
includes:
- './pet/store.yml'
- './pet/update.yml'
pet/store.yml
paths:
/pet:
post:
tags:
- pet
summary: |
Add a new pet to the store
parameters:
- in: body
name: body
description: Pet object that needs to be added to the store
required: true
schema:
$ref: '#/definitions/Pet'
responses:
405:
description: Invalid input
definitions:
Pet:
type: object
required:
- name
- photoUrls
properties:
id:
type: integer
format: int64
category:
$ref: '#/definitions/Category'
name:
type: string
example: 'doggie'
photoUrls:
type: array
items:
type: string
pet/update.yml
paths:
/pet:
put:
tags:
- pet
summary: |
Update an existing pet
parameters:
- in: body
name: body
description: Pet object that needs to be added to the store
schema:
$ref: '#/definitions/Pet'
responses:
400:
description: Invalid ID supplied
After swagger-include
:
swagger: "2.0"
info:
version: 1.0.0
title: Swagger Petstore
paths:
/pet:
post:
tags:
- pet
summary: |
Add a new pet to the store
parameters:
- in: body
name: body
description: Pet object that needs to be added to the store
required: true
schema:
$ref: '#/definitions/Pet'
responses:
405:
description: Invalid input
put:
tags:
- pet
summary: |
Update an existing pet
parameters:
- in: body
name: body
description: Pet object that needs to be added to the store
schema:
$ref: '#/definitions/Pet'
responses:
400:
description: Invalid ID supplied
definitions:
Category:
type: object
properties:
id:
type: integr
format: int64
name:
type: string
Pet:
type: object
required:
- name
- photoUrls
properties:
id:
type: integer
format: int64
category:
$ref: '#/definitions/Category'
name:
type: string
example: 'doggie'
photoUrls:
type: array
items:
type: string
FAQs
## Example
The npm package swagger-include receives a total of 5 weekly downloads. As such, swagger-include popularity was classified as not popular.
We found that swagger-include demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
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.