You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
Use the following Schema as an handler return annotation
@schemaclassSearchResult:
results: List[str]
What did you expect would happen?
No error
What happened?
File "~/.virtualenvs/matching/lib/python3.7/site-packages/molten/openapi/documents.py", line 239, in generate_openapi_document
response_schema_name = _generate_schema("response", response_annotation, schemas)
File "~/.virtualenvs/matching/lib/python3.7/site-packages/molten/openapi/documents.py", line 319, in _generate_schema
is_optional, field_schema = _generate_field_schema(field, context, schemas)
File "~/.virtualenvs/matching/lib/python3.7/site-packages/molten/openapi/documents.py", line 345, in _generate_field_schema
item_schema_name = _generate_schema(context, arguments[0], schemas)
File "~/.virtualenvs/matching/lib/python3.7/site-packages/molten/openapi/documents.py", line 303, in _generate_schema
forfieldinschema._FIELDS.values(): # noqa
AttributeError: 'function' object has no attribute '_FIELDS'
this is not valid if you use anything else than a schema as List argument
The text was updated successfully, but these errors were encountered:
What OS are you using?
SLED 12.3
What version of molten are you using?
0.50
What did you do?
Use the following Schema as an handler return annotation
What did you expect would happen?
No error
What happened?
this is not valid if you use anything else than a schema as
List
argumentThe text was updated successfully, but these errors were encountered: