Closed Future-Outlier closed 2 months ago
For more details, this is how we generate dataclass from marshmallow json schema
.
https://github.com/flyteorg/flytekit/blob/master/flytekit/core/type_engine.py#L1898-L1919
We want to do the same thing to mashumaro json schema
here, but it doesn't work now.
https://github.com/flyteorg/flytekit/blob/master/flytekit/core/type_engine.py#L1922-L1932
In the example above, I found that the "y":{ "type":"object" }
can't provide enough information for flytekit to convert the json schema
to attribute lists for dataclass transformer.
In the example above, I found that the
"y":{ "type":"object" }
can't provide enough information for flytekit to convert thejson schema
to attribute lists for dataclass transformer.
I'm sure this is because you have a too loose type:
y: dict
In the example above, I found that the
"y":{ "type":"object" }
can't provide enough information for flytekit to convert thejson schema
to attribute lists for dataclass transformer.I'm sure this is because you have a too loose type:
y: dict
No problem, thank you
In the example above, I found that the
"y":{ "type":"object" }
can't provide enough information for flytekit to convert thejson schema
to attribute lists for dataclass transformer.I'm sure this is because you have a too loose type:
y: dict
No problem, thank you
Can we close this issue or do you still have questions?
In the example above, I found that the
"y":{ "type":"object" }
can't provide enough information for flytekit to convert thejson schema
to attribute lists for dataclass transformer.I'm sure this is because you have a too loose type:
y: dict
No problem, thank you
Can we close this issue or do you still have questions?
Nope, thank you so much!
Description
I am a flytekit maintainer and working on the dataclass transformer. I found that when I'm serializing the class
Bar
below by functionfrom mashumaro.jsonschema import build_json_schema
, I will get an error when I want to generate a dict to convert it to a dataclass in the future.Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.
What I Did
Error Message
The schema I generated by
build_json_schema( ).to_dict( )