Comments (3)
Hi. Sorry for not responding sooner. Been crazy busy!
Thank you for exposing your Swagger files via a REST API. That makes it SUPER easy for me to use them without having to create duplicate copies of them in this repo. I've made the necessary code changes on my end to use your API, and it mostly works great. But there are a couple APIs that don't pass validation, which is causing my test suites to fail. :( Any chance you could fix these validation issues?
backupify.com
The blob
definition on line 1461 only has a description
which isn't enough information to satisfy the oneOf
rule in the Swagger 2.0 schema. Adding type: object
solves the problem:
blob:
type: object
description: A Binary Large OBject
plenigo.com
Basically the same issue as above. The OAuthError
definition on line 1426 doesn't satisfy the oneOf
rule in the Swagger 2.0 schema. Adding type: object
solves the problem:
OAuthError:
type: object
watchful.li
Basically the same as above. The Uptime
and Version
definitions on lines 2444 - 2445 are missing type: object
.
Uptime:
type: object
Version:
type: object
motaword.com
The POST /projects
endpoint has file
parameters. According to the Swagger 2.0 spec, if a parameter's type
is "file"
, the consumes
MUST be either "multipart/form-data"
, "application/x-www-form-urlencoded"
, or both. This can be fixed by adding the following at line 126:
post:
description: Create a new project
operationId: createProject
consumes:
- multipart/form-data
uploady.com
Basically the same as above. The POST /upload
endpoint has a file
parameter, so it needs to consume "multipart/form-data"
. This can be fixed by adding the following at line 367:
/upload:
consumes:
- multipart/form-data
from swagger-parser.
@BigstickCarpet #28 Solves all issues except last two.
I will look into them tomorrow
from swagger-parser.
Ah shit. Didn't realize they had updated the schema. I really wish they would use semver, so npm would keep Swagger Parser up-to-date automatically. :(
Thanks for fixing that
from swagger-parser.
Related Issues (20)
- Report all errors from Ajv's schema validation
- Open API 3.1 - Additional properties not allowed: $id HOT 1
- swagger-parser 10.1.0 is broken when used with npm < 7 or using --legacy-peer-deps HOT 7
- Latest version missing schema validation changes HOT 1
- Online validator is becoming unresponsive HOT 2
- Insecure Default Resolver Behavior HOT 4
- [HELP] - Please help me add this package on Vite HOT 2
- `swagger-parser@npm:10.0.2 doesn't provide openapi-types` HOT 1
- swagger version field as 'number' type is not detected in one case HOT 1
- Files over 3mb cause com.fasterxml.jackson.dataformat.yaml.JacksonYAMLParseException HOT 1
- Parameterise the validator function HOT 1
- ts property continueOnError is missing from SwaggerPaser.Options
- Unable to access requestBody after dereferencing my contract yaml
- validator doesn't support anchor tags in the paths (ie /my/base/url#myAnchor) HOT 2
- Import JSON Schema as File Not Over HTTP Request HOT 2
- Not able to parse stripe openapi file HOT 2
- Update OpenAPI 3.0.0 to OpenAPI 3.1 HOT 2
- Multiple minor problems parsing docker API spec HOT 2
- Header Parameters not validated
- Support for Wildcard HTTP Responses
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-parser.