-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Plain JS object as apiSpec in constructor #9
Labels
Comments
hi @sheldhur thanks for the suggestion. could you elaborate a bit on what you are looking for? perhaps provide an example of what you are thinking. i'll certainly consider. thanks! |
@cdimascio like this const apiSpec = {
openapi: "3.0.0",
info: {...},
servers: [...],
paths: {...},
components: {
responses: {...},
schemas: {...}
}
}
new OpenApiValidator({apiSpec}).install(app); |
got it. yes, something like this can certainly be supported. i'll look into it. thanks |
@sheldhur this is now implemented in express-openapi-validator@1.2.0. |
This was referenced Jun 24, 2024
This was referenced Aug 26, 2024
This was referenced Sep 13, 2024
This was referenced Sep 15, 2024
This was referenced Nov 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. Can you add support plain JS object as apiSpec in constructor?
It would be useful if you use
jsdoc
annotations for writing swagger\openapi spec or if you split yor spec on small simpled parts (js or json) and build big yaml when app starts.The text was updated successfully, but these errors were encountered: