Skip to content

Paths not properly implemented in python module. #55

@Lampboii

Description

@Lampboii

I am trying to use openapix to build an AWS API Gateway API from a source OpenAPI 3 file. I passing in my paths as a dict object (since I couldnt find out how using the Paths class) and when I try cdk synth I get TypeError: Paths.__init__() got an unexpected keyword argument [redacted]. So I traced the error:

  1.     # If paths argument is a dict pass its key-value pairs as keyword arguments to Paths constructor
         if isinstance(paths, dict):
             paths = Paths(**paths)
    
2. ```
    # the constructor (__init__) accepts no arguments
 class Paths:
    def __init__(self) -> None:
        '''(experimental) Paths with methods containing integrations.

        :stability: experimental
        '''
        self._values: typing.Dict[str, typing.Any] = {}
  1. Code fails

Any hopes that this might be fixed in the near future? I am planning on using this library more heavily in the near future if I can make it work with my small-scale project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions