Skip to content

Commit

Permalink
Fix pydantic_dataclasses reference in README (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekPikula authored Apr 13, 2023
1 parent e7f07fa commit b0b6cd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b0b6cd2

Please sign in to comment.