Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5dd3c9a

Browse files
EnriqueL8awrichar
authored andcommittedMay 1, 2025
Add AdditionalProperties to JSONAny schema type openapi
Signed-off-by: Enrique Lacal <enrique.lacal@kaleido.io>
1 parent 4db4b84 commit 5dd3c9a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎pkg/ffapi/openapi3.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,8 @@ func (sg *SwaggerGen) addCustomType(t reflect.Type, schema *openapi3.Schema) {
202202
schema.Type = &openapi3.Types{openapi3.TypeString}
203203
case "JSONAny":
204204
schema.Type = &openapi3.Types{openapi3.TypeObject}
205+
True := true
206+
schema.AdditionalProperties = openapi3.AdditionalProperties{Has: &True}
205207
}
206208
}
207209

0 commit comments

Comments
 (0)
Please sign in to comment.