You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I registered at swagger and created new app (api 3 version)
/tasks path has 2 not required fields and I can not set it not required,
it shows Not allowed Values error...
I have :
openapi: 3.0.0
info:
description: A Simple IP Address API
title: VTasks
version: v1
servers:
# Added by API Auto Mocking Plugin
- description: SwaggerHub API Auto Mocking
url: https://virtserver.swaggerhub.com/petrogromovo/Vtasks/1.0.0
- description: SwaggerHub API Auto Mocking
url: http://hosting.tk
# host: hosting.tk
# schemes:
# - http
# basePath: /
paths:
/tasks:
get:
tags:
- tasks
summary: Get paginated / filtered tasks listing
operationId: tasks
parameters:
- name: page
in: path
description: The page number to be fetched. If missed default 1.
required: true
schema:
type: integer
- name: order_by
in: path
description: The order_by be fetched.
required: false // ERROR : should be equal to one of the allowed values allowedValues: true
schema:
type: string
- name: filter
in: path
description: The filter for title field.
required: false // ERROR : should be equal to one of the allowed values allowedValues: true
schema:
type: string
responses:
'200':
description: successful operation
'400':
description: Invalid tasks supplied
'404':
description: tasks were not found
But if to remove these required definitions, I got 2 errors :
should have required property 'required' missingProperty: required
Which is valid syntax ?
Thanks!
The text was updated successfully, but these errors were encountered:
Hello,
I registered at swagger and created new app (api 3 version)
/tasks path has 2 not required fields and I can not set it not required,
it shows Not allowed Values error...
I have :
But if to remove these required definitions, I got 2 errors :
should have required property 'required' missingProperty: required
Which is valid syntax ?
Thanks!
The text was updated successfully, but these errors were encountered: