Describe the bug
References to other files don't work.
I have a custom schema that uses file references like so:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "file:Foo.schema.json",
"title": "A schema file",
"description": "Schema for validating the serialization of a Foo object.",
"type": "object",
"properties": {
"bar": {
"$ref": "Bar.schema.json"
}
}
When calling datamodel-codegen
:
$ datamodel-codegen --input /home/user/schemas/Foo.schema.json --output out --input-file-type jsonschema
Only the out
folder is created with a Bar.py
file.
Expected behavior
The out
folder to have both Python files.
Version:
80266b4f6ea09bc7675466af459c7f6617f0c307
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too