Comments (1)
I think this may happen due to the response validator middleware trying to iterate through the items of an array type. If items is not defined then it will try to iterate through undefined
, resulting in Unexpected token u(ndefined) in JSON at position 0.
The spec is valid since OpenAPI allows to specify array type without specifying its item types. I will look into it.
from oas-tools.
Related Issues (20)
- [Suggestion] Change middleware chain order (Swagger UI not working) HOT 4
- [BUG] Dynamic routes have higher priority over static routes HOT 6
- [BUG] oas tool 3.0 fail to treat optional field in schema as option. HOT 9
- [BUG] V3 Not Backwards Compatible with V2 JSON Specification File Code HOT 1
- [BUG] Cannot convert undefined or null to object oas param file has issue HOT 2
- [BUG] File spec loading error in legacy project HOT 2
- oas tools module import issue when doing tests with jest. HOT 9
- Align js-yaml version with @oas-tools/commons HOT 1
- [BUG] JSON double-encoding when using res.json() and validator.responseValidation HOT 3
- [Question]: Controller & Service file naming convention HOT 2
- [SUGGESTION] Problem with default exports "Controller X does not have method Y" HOT 1
- [BUG] customHandler for errors is not working as expected HOT 2
- Basepath is removed when calling any endpoint on google cloud functions. HOT 1
- [SUGESTION] Add support for mutualTLS security handler HOT 1
- The Controller annotation requires empty line be placed after the annotation
- [BUG] Invalid JSON in params results in Internal Server Error instead of Bad Request
- [SUGESTION] Remove check of multiple http security schemes
- [BUG] Something is broken
- [QUESTION] Is this project maintained (2024)? HOT 1
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 oas-tools.