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
[ ] Regression
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Now circular dependencies successfully resolving with direct ref to fluent-json-schema schemas, but here some pitfalls with the approach when we extracting schema and validate payload on the fly:
Circular schemas are dynamic and extracting at the moment when need to validate data. In this way the ajv compiling schema at the moment when data is arrived and need to be validated
Swagger doesn't output the schema of dynamic ref
Expected behavior
Need to refactor ref functionality without changing the API of createRef and other additional actions from client-side
Compile ref schemas on startup, when we are loading all controller schemas
Swagger should output the schema correctly in swagger document
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
Nest version: X.Y.Z
For Tooling issues:
- Node version: XX
- Platform:
Others:
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
Sometimes schemas require to refer to each other
In this case we created special helper that resolves cirluar dependencies
Now circular dependencies successfully resolving with direct ref to
fluent-json-schema
schemas, but here some pitfalls with the approach when we extracting schema and validate payload on the fly:Expected behavior
Need to refactor ref functionality without changing the API of
createRef
and other additional actions from client-sideMinimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
The text was updated successfully, but these errors were encountered: