Skip to content

Commit 21711e4

Browse files
committed
- make schemas easier to navigate/iterate and display
1 parent afcdad3 commit 21711e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/jooby-openapi/src/main/java/io/jooby/internal/openapi/asciidoc/AsciiDocContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public Map<String, Object> getGlobalVariables() {
166166
var components = context.openapi.getComponents();
167167
if (components != null && components.getSchemas() != null) {
168168
var schemas = components.getSchemas();
169-
openapiRoot.put("schemas", schemas);
169+
openapiRoot.put("schemas", new ArrayList<>(schemas.values()));
170170
}
171171

172172
// make in to work without literal

0 commit comments

Comments
 (0)