32public record
OpenApiSchema(String type, String format, String description,
boolean nullable, Object example,
33 String ref, Map<String, OpenApiSchema> properties, List<String> required,
OpenApiSchema items) {
36 properties = properties ==
null ? Map.of() : Map.copyOf(properties);
37 required = required ==
null ? List.of() : List.copyOf(required);
41 return new OpenApiSchema(
"string",
null,
null,
false,
null,
null, Map.of(), List.of(),
null);
45 return new OpenApiSchema(
"integer",
"int32",
null,
false,
null,
null, Map.of(), List.of(),
null);
record OpenApiSchema(String type, String format, String description, boolean nullable, Object example, String ref, Map< String, OpenApiSchema > properties, List< String > required, OpenApiSchema items)