Skip to content

path validation panic when pathItem is nil #264

@schmilmo

Description

@schmilmo

Hi,

If I try to validate the following schema the Paths.Validate function panics because it's accessing pathItem == nil
I used the following schema

openapi: 3.0.1
info:
  title: test schema
  description: test schema
  termsOfService: https://www.company.com
  contact:
    name: info
    email: info@company.com
  license:
    name: open-licence
    url: https://www.company.com/open-licence
  version: v3.1.6
servers:
- url: www.company.com
paths:
  /endpoint1/:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions