File tree 1 file changed +16
-0
lines changed
springdoc-openapi-starter-common/src/main/java/org/springdoc/api
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -406,11 +406,19 @@ protected OpenAPI getOpenApi(Locale locale) {
406
406
}
407
407
}
408
408
409
+ /**
410
+ * Indents are removed for properties that are mainly used as “explanations” using Open API.
411
+ * @param openAPI the open api
412
+ */
409
413
private void trimIndent (OpenAPI openAPI ) {
410
414
trimComponents (openAPI );
411
415
trimPaths (openAPI );
412
416
}
413
417
418
+ /**
419
+ * Trim the indent for descriptions in the 'components' of open api.
420
+ * @param openAPI the open api
421
+ */
414
422
private void trimComponents (OpenAPI openAPI ) {
415
423
final PropertyResolverUtils propertyResolverUtils = operationParser .getPropertyResolverUtils ();
416
424
if (openAPI .getComponents () == null || openAPI .getComponents ().getSchemas () == null ) {
@@ -429,6 +437,10 @@ private void trimComponents(OpenAPI openAPI) {
429
437
}
430
438
}
431
439
440
+ /**
441
+ * Trim the indent for descriptions in the 'paths' of open api.
442
+ * @param openAPI the open api
443
+ */
432
444
private void trimPaths (OpenAPI openAPI ) {
433
445
final PropertyResolverUtils propertyResolverUtils = operationParser .getPropertyResolverUtils ();
434
446
if (openAPI .getPaths () == null ) {
@@ -447,6 +459,10 @@ private void trimPaths(OpenAPI openAPI) {
447
459
}
448
460
}
449
461
462
+ /**
463
+ * Trim the indent for 'operation'
464
+ * @param operation the operation
465
+ */
450
466
private void trimIndentOperation (Operation operation ) {
451
467
final PropertyResolverUtils propertyResolverUtils = operationParser .getPropertyResolverUtils ();
452
468
if (operation == null ) {
You can’t perform that action at this time.
0 commit comments