Skip to content

Empty paths object is now failing for version 3.0.0 #1950

Closed
@darrelmiller

Description

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 #/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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