Redocly / redocly-vs-code

Redocly VS Code extension
35 stars 6 forks source link

VS Code. Duplications in suggestions #59

Open lornajane opened 9 months ago

lornajane commented 9 months ago

Image

openapi: 3.1.0
info:
  description: |
    sdf
  title: example tisdfstle
  version: 1.0ssdf
  contact:
    name: API Support
    email: email@example.com
    url: https://github.com/Redocly/redoc
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
  - url: https://example.server.io
    description: description server text.
  - url: https://example.server.io
    description: description server text.
paths:
  /localcollect/v2/locations/{postcode}:
    get:
      description: Returns a list of Post Offices and Enquiry Offices along with information on opening hours and facilities available with postcode as the input
      summary: GetDeliveryLocations
      operationId: GetDeliveryLocations
      parameters: 
        - name: sdfad
          in: path
          schema: 
            type: number

      # parameters:
      #   - name: postcode
      #     in: path
      #     description: Returns a list of Post Offices and Enquiry Offices along with information on opening hours and facilities available with postcode as the input
      #     required: true
      #     schema:
      #       type: number
      #   - $ref: "#/components/parameters/Accept"
      #   - $ref: "#/components/parameters/Host"
      #   - $ref: "#/components/parameters/ClientId" 
      responses: 
        200:
          description: Succes!!!!
          content: 
            application/json: 
              schema: 
                type: object
                properties: 
                  locations:
                    type: array
                    items: 
                      $ref: "#/components/schemas/location"  

components: 
  parameters: 
    propertyName: 
# components:
#   schemas: 
#     facilities: 
#       type: object
#       properties: 
#         customerParkingIndicator:
#           description: Whether has parking
#           type: boolean
#         disabilityIndicator: 
#           description: Whether has disabled access
#           type: boolean
#     geoLocation: 
#       type: object
#       required: 
#         - latitude
#         - longitude
#       properties: 
#         latitude:
#           type: number
#           format: float
#         longitude:
#           type: number
#           format: float
#     openingHour: 
#       required: 
#         - dayOfWeek
#         - openingTime
#         - closingTime
#       type: object
#       properties: 
#         dayOfWeek:
#           type: string
#           enum: 
#             - Monday
#             - Tuesday
#             - Wednsday
#             - Thursday
#             - Friday
#             - Saturday
#             - Sunday
#         openingTime:
#           type: string
#           format: time
#         closingTime: 
#           type: string
#           format: time
#     location: 
#       type: object
#       required: 
#         - organisationName
#         - locationName
#         - addressLine1
#         - addressLine2
#         - postcode
#         - openingHours
#         - geoLocation
#         - distance
#         - type
#       properties: 
#         organisationName:
#           description: This is either "Post Office Limited" or Royal Mail
#           type: string
#         locationName:
#           description: The branch name. e.g. Mount Pleasant Enquiry Office
#           type: string
#         addressLine1: 
#           description: The first line of address
#           type: string
#         addressLine2: 
#           type: string
#           description: The second line of address
#         addressLine3: 
#           type: string
#         city:
#           type: string
#           description: City in which the branch is located
#         county:
#           type: string
#           description: County in which the branch is located
#         postcode: 
#           type: string
#           description: The post code of the post office or enquiry office
#         openingHours: 
#           type: array
#           description: |
#             The object containing the opening  
#             and closing hours for the branch,
#             including the mid-day closing hours.
#           items: 
#             $ref: "#/components/schemas/openingHour"
#         geoLocation:
#           description: | 
#             The object containing the latitude
#             and longitude for the enquiry or
#             post office branch.
#           $ref: "#/components/schemas/geoLocation"
#         distance:
#           description: The distance of the branch from the search location
#           type: number
#           format: float
#         facilities:
#           $ref: "#/components/schemas/facilities"
#           description: |
#             The object containing the
#             information regarding the facilities
#             provided by the branch e.g. if
#             parking is available and if the
#             branch provides disabled access.
#         type:
#           type: string
#           description:  | 
#              An enumeration consisting of Post Office
#              Enquiry Office
#   parameters:
#     Host:
#       required: true
#       description: This is the domain name.
#       in: header
#       name: Host
#       schema:
#         type: string
#     Accept:
#       required: true
#       description: | 
#         This attribute accepts requests in
#         application/json format.
#       in: header
#       name: Accept
#       schema:
#         type: string
#     ClientId:
#       required: true
#       description: | 
#         Similar to a client username. Required
#         to access the API.
#       in: header
#       name: X-IBM-Client-Id 
#       schema:
#         type: string