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
In a project, i make use of a custom in-memory resolver to apply various transformations on json schema / openAPI files, specifically in processing pipelines.
To this effect, i need to use oas-resolver cache option, in order to feed it in-memory schema contents without having to write intermediary results to disk.
Detailed description
Enhancement: allow customizing oas-resolver options, specifically the cache option.
Context
It would be beneficial for everyone trying to use this library with custom resolvers, which i foresee will develop in the near future, with schema-first api design being more and more adopted.
Possible implementation
Move the cache option initialization just before the spread of the options object.
In a project, i make use of a custom in-memory resolver to apply various transformations on json schema / openAPI files, specifically in processing pipelines.
To this effect, i need to use oas-resolver
cache
option, in order to feed it in-memory schema contents without having to write intermediary results to disk.Detailed description
Enhancement: allow customizing
oas-resolver
options, specifically thecache
option.Context
It would be beneficial for everyone trying to use this library with custom resolvers, which i foresee will develop in the near future, with schema-first api design being more and more adopted.
Possible implementation
Move the
cache
option initialization just before the spread of theoptions
object.speccy/lib/loader.js
Lines 164 to 166 in a86b1a9
I'll have a PR ready fast for a simple change as it is.
The text was updated successfully, but these errors were encountered: