Skip to content

Commit 7a3b957

Browse files
committedMar 4, 2025
Add missing builder methods in SchemaBuilder
1 parent 4c3c51e commit 7a3b957

File tree

1 file changed

+44
-0
lines changed
  • springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/builders/schema

1 file changed

+44
-0
lines changed
 

‎springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/builders/schema/Builder.java

+44
Original file line numberDiff line numberDiff line change
@@ -837,6 +837,50 @@ public Builder schemaResolution(SchemaResolution schemaResolution) {
837837
return this;
838838
}
839839

840+
/**
841+
* Dependent required map builder.
842+
*
843+
* @param dependentRequiredMap the dependent required map
844+
* @return the builder
845+
*/
846+
public Builder dependentRequiredMap(DependentRequired[] dependentRequiredMap) {
847+
this.dependentRequiredMap = dependentRequiredMap;
848+
return this;
849+
}
850+
851+
/**
852+
* Dependent schemas builder.
853+
*
854+
* @param dependentSchemas the dependent schemas
855+
* @return the builder
856+
*/
857+
public Builder dependentSchemas(StringToClassMapItem[] dependentSchemas) {
858+
this.dependentSchemas = dependentSchemas;
859+
return this;
860+
}
861+
862+
/**
863+
* Pattern properties builder.
864+
*
865+
* @param patternProperties the pattern properties
866+
* @return the builder
867+
*/
868+
public Builder patternProperties(StringToClassMapItem[] patternProperties) {
869+
this.patternProperties = patternProperties;
870+
return this;
871+
}
872+
873+
/**
874+
* Properties builder.
875+
*
876+
* @param properties the properties
877+
* @return the builder
878+
*/
879+
public Builder properties(StringToClassMapItem[] properties) {
880+
this.properties = properties;
881+
return this;
882+
}
883+
840884
/**
841885
* Additional properties builder.
842886
*

0 commit comments

Comments
 (0)
Failed to load comments.