hasura / hasura/graphql-engine

OpenAPI import fails on valid Logto schema

Open
#9,986 0 comments 0 reactions 0 assignees View on GitHub
k/bug
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Version Information

Server Version: v2.35.0

### Environment
OSS

### What is the current behaviour?
The import UI reports the following:
```
Invalid spec: Cannot use 'in' operator to search for '$ref' in undefined
```

Also see ticket https://github.com/logto-io/logto/issues/4864

### How to reproduce the issue?

1. Install Logto version 1.10.1
2. Copy the OpenAPI specification from `/api/swagger.json`
3. Paste into Hasura OpenAPI import.

### Screenshots or Screencast
hasura-validator
oas3validator

### Please provide any traces or logs that could help here.
[swagger.json](https://github.com/hasura/graphql-engine/files/13326505/swagger.json)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.