Skip to content

Latest commit

 

History

History
130 lines (95 loc) · 2.75 KB

MEMORY.md

File metadata and controls

130 lines (95 loc) · 2.75 KB

Doesn't support alias which is ref on another type. For exmaple

UserID:
    $ref: "#/components/schemas/AnotherType"

Idk if we need it. It seems prety strange

Write test on it


ParametersTreeParser.swift

and in another file in class Resolver

we ignore name of alias and we implicitly add type to parameter

so if we have

parameters:
    - name: abc
    in: query
    schema:
        UserID:
            type: string

then we will have

parameters:
    - name: abc
    in: query
    schema:
        type: string

idk if we should do cmth with it


TreeParser returns arrays caount the same as dependencies count. It looks like a big fall in logic


Doesn't support response headers


Schek that ref to RequestBody from another RequestBody leads to error throwing


content: application/json: schema: type: array items: $ref: "../billings/models.yaml#/components/schemas/Tariffs"

Isn't supported, but if array is decalared in components then it will work ok


/resources/config: get: summary: Метод конфига description: > Здесь будет возвращаться конфиг для приложения. Представляет из себя словарь со вложенными словарями: {"common": "error": {"noNetwork": "text"}}} Полную конфигурацию можно посмотреть $ссылка responses: "200": description: Успех content: application/json: schema: type: object additionalProperties: {} default: $ref: "../errors.yaml#/components/responses/ApiErrorResponse"

we can't parse it. Because of in-lace definition of additionalProperties. And have no idea how to parse it


/feedback/attachments: post: summary: Файлы для обратной связи requestBody: required: true content: multipart/form-data: schema: properties: file: type: string format: binary


Array inside array is unsupported (but it possible if array item's type is object whic is array)


Need test group which is referenced to another group Group which is referenced to object Object wchich i referenced to group GroupDefinitionWorksInRequest and response and so on


Write tests on resoving reference cycles betwenn different files when models from file A referenced models form file B and B -> A


Test hat we can declare arrays and groups in place for request/response bodies


Test building parameters with each possible type


Write tests for parameter with schema declaration in type