Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions adapter/internal/oasparser/model/open_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ func (swagger *MgwSwagger) SetInfoOpenAPI(swagger3 openapi3.Swagger) error {
return err
}

if swagger.apiType != MCP {
if swagger.apiType != MCP && swagger.apiType != GRAPHQL {
swagger.apiType = HTTP
} else {
logger.LoggerOasparser.Info("Received swagger for MCP API")
logger.LoggerOasparser.Infof("Received swagger for %s API", swagger.apiType)
Comment thread
Shamly-Shanawaz marked this conversation as resolved.
}
var productionUrls []Endpoint
// For prototyped APIs, the prototype endpoint is only assinged from api.Yaml. Hence,
Expand Down
2 changes: 1 addition & 1 deletion adapter/internal/oasparser/model/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func (apiProject *ProjectAPI) ProcessFilesInsideProject(fileContent []byte, file
return conversionErr
}
apiProject.APIDefinition = swaggerJsn
if !(apiProject.APIType == MCP) {
if !(apiProject.APIType == MCP || apiProject.APIType == GRAPHQL) {
apiProject.APIType = HTTP
Comment thread
Shamly-Shanawaz marked this conversation as resolved.
if strings.Contains(fileName, openAPIDir+string(os.PathSeparator)+asyncAPIFilename) {
apiProject.APIType = WS
Comment thread
Shamly-Shanawaz marked this conversation as resolved.
Expand Down
Loading