From 7a3b957c0a767378f25d9ac3d6bcc4c4e1963950 Mon Sep 17 00:00:00 2001 From: John Niang Date: Tue, 4 Mar 2025 15:14:07 +0800 Subject: [PATCH] Add missing builder methods in SchemaBuilder --- .../core/fn/builders/schema/Builder.java | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/builders/schema/Builder.java b/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/builders/schema/Builder.java index fe7bbaff0..d3bafada6 100644 --- a/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/builders/schema/Builder.java +++ b/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/fn/builders/schema/Builder.java @@ -837,6 +837,50 @@ public Builder schemaResolution(SchemaResolution schemaResolution) { return this; } + /** + * Dependent required map builder. + * + * @param dependentRequiredMap the dependent required map + * @return the builder + */ + public Builder dependentRequiredMap(DependentRequired[] dependentRequiredMap) { + this.dependentRequiredMap = dependentRequiredMap; + return this; + } + + /** + * Dependent schemas builder. + * + * @param dependentSchemas the dependent schemas + * @return the builder + */ + public Builder dependentSchemas(StringToClassMapItem[] dependentSchemas) { + this.dependentSchemas = dependentSchemas; + return this; + } + + /** + * Pattern properties builder. + * + * @param patternProperties the pattern properties + * @return the builder + */ + public Builder patternProperties(StringToClassMapItem[] patternProperties) { + this.patternProperties = patternProperties; + return this; + } + + /** + * Properties builder. + * + * @param properties the properties + * @return the builder + */ + public Builder properties(StringToClassMapItem[] properties) { + this.properties = properties; + return this; + } + /** * Additional properties builder. *