Skip to content

Generic error when linting schema #694

@lordnelson

Description

@lordnelson

I am trying to lint a schema that may have some issues but is currently successfully having code generated from it. When I try to run vacuum I get the following generic error:

Location        | Severity | Message                               | Rule        | Category | Path
openapi.yml:0:0 | error    | schema invalid: got null, want object | oas3-schema | Schemas  | $  

Seeming to indicate the entire file is invalid. However there are other warning messages output afterwards:

### `Operations` violations
<details><summary>⚠️️ Warnings: 4</summary>
⚠️️ operation-success-response: 4
| location | JSONPath                                                                |
| -------- | ----------------------------------------------------------------------- |
| `226:7`  | $.paths['/api/v1/restore-complete'].post.responses |

I don't know how to resolve the oas3-schema error. Any ways I can debug this as it occurs on a few, but not all, of the schemas I have tried.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions