danielgolub / openapi-middleware Goto Github PK
View Code? Open in Web Editor NEWSwagger 3.0 middleware for common api frameworks (pre-release version!)
License: MIT License
Swagger 3.0 middleware for common api frameworks (pre-release version!)
License: MIT License
Is your feature request related to a problem? Please describe.
Support json ref parsing capability to take references from different sections of the file.
Describe the solution you'd like
https://swagger.io/docs/specification/components/
Describe alternatives you've considered
N/A
Additional context
N/A
Describe the feature
add Dependabot config.
make sure it will label its PRs with a custom label
Is your feature request related to a problem? Please describe.
when securityScheme is the following:
securitySchemes:
basicAuth:
type: 'apiKey'
in: 'cookie'
name: 'cookieParam'
we throw an exception. need to add cookie support here including tests.
Describe the solution you'd like
Follow official spec: https://swagger.io/docs/specification/authentication/
Add it to the enum here:
openapi-middleware/lib/SecurityValidator.js
Lines 61 to 66 in 091db91
And also add respective test case here (another param for cookie):
Describe alternatives you've considered
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
we currently validate all input parameters, we need to also validate response codes + body
Describe the solution you'd like
https://swagger.io/docs/specification/describing-responses/
Describe alternatives you've considered
N/A
Additional context
N/A
Describe the bug
Missing support for security validators
To Reproduce
OpenAPI definition:
openapi: 3.0.0
info:
title: Sample API
description: Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.
version: 0.1.0
securitySchemes:
basicAuth:
type: 'http'
scheme: 'basic'
paths:
/greeting:
get:
summary: Returns a greeting for a guest.
description: Sample endpoint that returns a greeting.
operationId: greetingGuest
security:
- basicAuth: []
responses:
'200':
description: Response
content:
application/json:
schema:
type: object
responseText:
type: string
Expected behavior
should be able to pass to config a handler for each securityScheme.
Desktop (please complete the following information):
Describe the bug
missing byte / binary validator
openapi-middleware/lib/ParameterValidator.js
Line 121 in a948330
To Reproduce
OpenAPI definition:
type: string
format: byte/binary
Expected behavior
Validate the input to be binary / byte
Desktop (please complete the following information):
missing docs for index export.
same for readme.
Describe the bug
multipleOf
for numeric properties is not being validated
To Reproduce
OpenAPI definition:
type: integer
multipleOf: 10
Expected behavior
Validate increments multiplied by the specified number
Desktop (please complete the following information):
Additional context
Need to add custom validator to the openapi-schema-validator
usage
Is your feature request related to a problem? Please describe.
Missing support for oauth2 / openIdConnect in security schemes.
Describe the solution you'd like
Need to add support here:
openapi-middleware/lib/SecurityValidator.js
Lines 52 to 59 in 091db91
Describe alternatives you've considered
N/A
Additional context
N/A
Feature description
Missing JSDOC integration for easier development experience.
Consider adding GitHub Pages integration.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.