Skip to content

Commit b6b254c

Browse files
authored
Fix struct Person definition in json_schema.md (#671)
1 parent aad19a9 commit b6b254c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/json_schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ You can mark fields as deprecated in the JSON schema using `rfl::Deprecated`. Th
202202
```cpp
203203
struct Person {
204204
rfl::Deprecated<"Use 'full_name' instead.", "The person's first name", std::optional<std::string>>
205-
std::optional<first_name>;
205+
first_name;
206206
rfl::Description<"The person's full name", std::string> full_name;
207207
float salary;
208208
};

0 commit comments

Comments
 (0)