Skip to content

Datamodel codegen#98

Closed
Karrenbelt wants to merge 7 commits intomainfrom
feat/datamodel-codegen
Closed

Datamodel codegen#98
Karrenbelt wants to merge 7 commits intomainfrom
feat/datamodel-codegen

Conversation

@Karrenbelt
Copy link
Collaborator

No description provided.

input_=input_path,
input_file_type=InputFileType.OpenAPI,
output=output_path,
output_model_type=DataModelType.DataclassesDataclass,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for performance, pydantic was obviously the worst, but there are also DataModelType.TypedDict and DataModelType.MsgspecStruct we could opt for.

  • TypedDict likely offers best performance, as it offers purely static type checking and hence no runtime overhead
  • MsgspecStruct may be faster and smaller as they claim, I don't know. I have tested orjson, which offers significant improvement in my websocket brenchmarks (code not in this PR)

@8ball030
Copy link
Owner

8ball030 commented Oct 1, 2025

dfd9b2b

Merged with this one.
Which;
i) still formats the file
ii) ensures it is idiompotent
iii) ensures the latest spec is actually in the repo.

@8ball030 8ball030 closed this Oct 1, 2025
@8ball030 8ball030 deleted the feat/datamodel-codegen branch October 1, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants