-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Hi,
I have an issue building the example for python. C++ works great. Could you please help out?
System:
Windows 10
Python 3.10 (Conda)
Pip installed your requirements
Failure generating test '#/components/schemas/lightMeasuredPayload' for scheam {'type': 'object', 'properties': {'lumens': {'type': 'integer', 'minimum': 0, 'description': 'Light intensity measured in lumens.'}, 'sentAt': {'$ref': '#/components/schemas/sentAt'}}} when root is Spec
Traceback (most recent call last):
File "C:\Users{user}\Documents\projects\asyncapi-codegen\examples\example_py.py", line 23, in
pyGenerator.Generate(spec, stringcase.pascalcase(name), name)
File "C:\Users{user}\Documents\projects\asyncapi-codegen\asyncapicodegen\python_client.py", line 59, in Generate
self.GenerateTestsForType(wrappedSpec, 'schemas', lambda obj: obj)
File "C:\Users{user}\Documents\projects\asyncapi-codegen\asyncapicodegen\python_summary.py", line 48, in GenerateTestsForType
output = schemaGenerator.GenerateTestFromPath(schema, spec, ref)
File "C:\Miniconda3\envs\asyncapi-codegen\lib\site-packages\jsonschemacodegen\python.py", line 92, in GenerateTestFromPath
return self.GenerateTest(schema, root, class_name, filename_base, path)
File "C:\Miniconda3\envs\asyncapi-codegen\lib\site-packages\jsonschemacodegen\python.py", line 68, in GenerateTest
filename = self.resolver.py_test_filename(path)
AttributeError: 'SimpleResolver' object has no attribute 'py_test_filename'. Did you mean: 'py_filename'?