Skip to content

Empty paths object is now failing for version 3.0.0 #1950

@darrelmiller

Description

@darrelmiller

Describe the bug
The following OpenAPI used to be valid in OpenApi v1.x. It is now giving an error message.

OpenApi File To Reproduce

openapi: 3.0.0
info:
  title: Sample API
  version: 1.0.0
paths: {}

Expected behavior
Valid OpenApi document

Screenshots/Code Snippets

fail: Microsoft.OpenApi.Hidi.Handlers.ValidateCommandHandler[0]
      => Parsing OpenAPI: simple1.yaml => Detected errors
      Detected error during parsing: Paths is a REQUIRED field at #/

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions