-
Notifications
You must be signed in to change notification settings - Fork 504
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
Problem Importing JSON with @example
in TSOA
#1480
Comments
Issue Resolution: TSOA Not Recognizing JSON Import in @example Decorator Problem Description: Steps to Reproduce the Issue:
Expected Outcome: Resolution:
With these steps, you should be able to import and use the JSON correctly in examples defined with the |
Have a nice day! |
Description:
Context:
I am using TSOA (TypeScript OpenAPI) to document and generate an API in TypeScript. Recently, I encountered an issue when trying to import JSON in examples defined with the
@example
decorator.Problem:
When I attempt to import JSON in an example using
@example
, TSOA does not recognize the value of the JSON and displays it as a string instead of a JSON object.Steps to Reproduce the Issue:
@example
decorator as follows:importedExample
from another file, as shown below:Expected Outcome:
I expected TSOA to recognize the imported value of
importedExample
as a JSON object and display it correctly in the generated documentation.Additional Information:
I appreciate any guidance or solutions to address this problem. Thank you!
The text was updated successfully, but these errors were encountered: