From b0b6cd24ada4e1302ea421338ad92f280ffae7f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Piku=C5=82a?= Date: Thu, 13 Apr 2023 22:56:38 +0200 Subject: [PATCH] Fix pydantic_dataclasses reference in README (#474) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38fb168..4afb5a6 100644 --- a/README.md +++ b/README.md @@ -374,10 +374,10 @@ when calling the protobuf compiler: ``` -protoc -I . --custom_opt=pydantic_dataclasses --python_betterproto_out=lib example.proto +protoc -I . --python_betterproto_opt=pydantic_dataclasses --python_betterproto_out=lib example.proto ``` -With the important change being `--custom_opt=pydantic_dataclasses`. This will +With the important change being `--python_betterproto_opt=pydantic_dataclasses`. This will swap the dataclass implementation from the builtin python dataclass to the pydantic dataclass. You must have pydantic as a dependency in your project for this to work.