From 81f7b7bd96c29f455f285f14ea5011115e8f83de Mon Sep 17 00:00:00 2001 From: Thomas Kappler Date: Tue, 9 Apr 2024 19:11:33 +0200 Subject: [PATCH] Revert "Check for OpenAI's x-oaiTypeLabel extension" This reverts commit 26e785ded812bae0574762b2af06e5ec5d850e8a. --- pkg/openapi.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/openapi.go b/pkg/openapi.go index f91b048..d77c4eb 100644 --- a/pkg/openapi.go +++ b/pkg/openapi.go @@ -1048,11 +1048,6 @@ func (ctx *resourceContext) propertyTypeSpec(parentName string, propSchema opena } } - // OpenAI shenanigans. - if val, has := propSchema.Value.Extensions["x-oaiTypeLabel"]; has && val == "string" { - return &pschema.TypeSpec{Type: "string"}, false, nil - } - valType := propSchema.Value.Type if valType == nil && len(propSchema.Value.AnyOf) == 1 { valType = propSchema.Value.AnyOf[0].Value.Type