Adds middleware to your express app to serve the Swagger UI bound to your Swagger document. This acts as living documentation for your API hosted from within your app.
MIT License
1.41k
stars
225
forks
source link
4.3.* version produces skew reference on mult-file schema #282
The error looks like the following snippet but the list is for every spec I defined:
{
"keyword": "required",
"dataPath": ".paths[]['post'].requestBody",
"schemaPath": "#/definitions/Reference/required",
"params": {
"missingProperty": "$ref"
},
"message": "should have required property '$ref'"
},
{
"keyword": "oneOf",
"dataPath": ".paths[]['post'].requestBody",
"schemaPath": "#/properties/requestBody/oneOf",
"params": {
"passingSchemas": null
},
"message": "should match exactly one schema in oneOf"
}
Anyone experiencing this kind of issue? I can try to fix it but I don't know if there's any dev involved in a breaking change to this specific part of the library
I've using
swagger-ui-express
for a while under version4.1.4
Today, after upgrading packages I found that 4.3.* produces warning messages about
null-reference
and missing schema errors.I'm using a multi-file spec as a
.js
file, looking like:The error looks like the following snippet but the list is for every spec I defined:
Anyone experiencing this kind of issue? I can try to fix it but I don't know if there's any dev involved in a breaking change to this specific part of the library