Dennis Weyland
Dennis Weyland
My use case is, that for a bigger project I would like to build pydantic classes out of openapi.json provided by a fastapi application. I don't want to automate the...
Sorry me again. I did tried to include the project in the bigger project but got stuck again since due to strict requirement managament I can only rely on argcomplete...
> Did you want to change the lowest version to 1.10? I think it is not a perfect answer to resolving the problem. But, If you hope it then I...
@koxudaxi Tried to add it and failed. I now checked all listed dependencies above and checked against the existing dependencies in my project. Unfortunatly I can only add things and...
After rethinking this, would it make sense to keep it at one package and include the cli stuff as extra dependency? The Cons would be, that the main use case...
> Sorry, What did you expect? Would you show me an example? Sure let's assume the example from https://github.com/koxudaxi/datamodel-code-generator/issues/205 is hosted somewhere. ``` openapi_dict = requests.get("url to some fastapi service/openapi.json").dict()...
Basically the use case I have is the same as calling the cli and directly import the constructed file using runpy.run_path for example. > I think that it's difficult to...
Thinking about what I just said: A good minimal solution would be to have nearly the same functionality as the CLI (instead of an input file input would be a...
Nope since with the newst direction my use case would still fall in the category of code generation (only that the code wouldn't be writte to a file).
> If I understand this right, you're looking for an imaginary package called openapi-to-jschonschema, right? Is that what you refer to as the "parser"? More like openapi_schema_to_pydantic_classes. But as mentioned...