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
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:
paths:
/login:
post:
description: "login"
consumes:
produces:
responses:
"401":
$ref: '#/components/responses/UnauthorizedError'
components:
responses:
UnauthorizedError:
description: Authentication information is missing or invalid
headers:
WWW_Authenticate:
schema:
type: string