Closed
Description
Tell us about the problem you're trying to solve
The discovery
command should produce resolvable schemas, i.e. without referencing any external files.
Currently we use simple algorithm as a workaround:
- move external files to
shared
folder - during discovery we load schemas and replace any reference to shared files with the content of these files
This of course has doesn't cover all cases:
- reference inside shared files
- reference to definitions sections
Describe the solution you’d like
We should process all $ref
s recursively and generate the definitions
section as Pydantic does. Ideally, we would like to use Pydantic where it is possible
Describe the alternative you’ve considered or used
none
Additional context
Example of such schemas in the FB connector:
Are you willing to submit a PR?
Your answer