Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paths not properly implemented in python module. #55

Open
Lampboii opened this issue May 17, 2023 · 1 comment
Open

Paths not properly implemented in python module. #55

Lampboii opened this issue May 17, 2023 · 1 comment

Comments

@Lampboii
Copy link

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.

@Lampboii
Copy link
Author

I did my own python implementation just to get my code going but I would love to use this library instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant