Is there support for OpenAPI 3.1.0?
I was very much fascinated by the UI flexibility and the features docusaurus-openapi provide. But I'm a bit skeptical about the support for OpenAPI 3.1.0. Is it supported yet?
Have you tried testing with 3.1.0?
I tried with 3.1.0. Actually OpenAPI 3.1.0 supports multiple types in a schema (also specified here: Specifying multiple types for additionalProperties through Swagger/OpenAPI)
I tried debugging as follows: node_modules/docusaurus-plugin-openapi/lib/openapi/createExample.js
function primitive(schema = {}) {
let { type, format } = schema;
if (type === undefined || type === null) {
return;
}
console.log(type);
let fn = primitives[type].default;
if (format !== undefined) {
fn = primitives[type][format] || fn;
}
if (fn) {
return fn(schema);
}
return "Unknown Type: " + schema.type;
}
I logged the output to find that last type was an array and it the primitive function doesn't handle arrays well!
Here's the output:

Then I guess we don’t support 3.1.0
Okay cool! I'll then go back to OpenAPI 3.0.3 as of now!
Should I close this issue?
Thanks and Regards, Kinjal Raykarmakar