Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to identify OpenAPI 3.0.0 file #8

Open
luisgarciaalanis opened this issue May 27, 2018 · 1 comment
Open

Fails to identify OpenAPI 3.0.0 file #8

luisgarciaalanis opened this issue May 27, 2018 · 1 comment

Comments

@luisgarciaalanis
Copy link

line one of my yaml file has:
openapi: 3.0.0

And I get the error:
Swagger Error
Missing required property: swagger

am I missing something?

openapi: 3.0.0
info:
description: "Endpoints for the application."
version: "1.0.0"
title: "api's"
basePath: "/apis/v1"
schemes:

  • "http"
    paths:
    /login:
    post:
    description: "login"
    consumes:
    • "application/json"
      produces:
    • "application/json"
      responses:
      "401":
      $ref: '#/components/responses/UnauthorizedError'
      components:
      responses:
      UnauthorizedError:
      description: Authentication information is missing or invalid
      headers:
      WWW_Authenticate:
      schema:
      type: string
@pdefreitas
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants