Skip to content

Fails to parse openapi schema #11

@alexspurling

Description

@alexspurling

I have the following dummy openapi schema adapted from a json schema generated by a real API. This schema cannot be parsed by openapi-fuzzer 0.1.3 (built from master commit 7da1471)

Schema:

{
  "openapi": "3.0.2",
  "info": {
    "title": "Example",
    "description": "Example",
    "version": "0.0.1"
  },
  "paths": {
    "/foo": {
      "get": {
        "operationId": "getFoo",
        "summary": "Get list of foo",
        "description": "Returns all the foo",
        "produces": [
          "application/json"
        ]
      }
    }
  }
}

Error:

$ openapi-fuzzer -s ~/code/openapi.json -u http://localhost
Error: Failed to parse schema

Caused by:
    paths: data did not match any variant of untagged enum ReferenceOr at line 8 column 12

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