Skip to content

Commit

Permalink
fix: Regenerating atrium-api and Dirty Fixing label/defs (#138)
Browse files Browse the repository at this point in the history
* Regenerating atrium-api and Dirty Fixing label/defs

* Fix codegen, and regenerating atrium-api

---------

Co-authored-by: Sanhaji Omar <[email protected]>
Co-authored-by: sugyan <[email protected]>
  • Loading branch information
3 people authored Mar 14, 2024
1 parent c1097ef commit 4bae693
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 6 deletions.
6 changes: 3 additions & 3 deletions atrium-api/src/app/bsky/actor/defs.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions atrium-api/src/com/atproto/label/defs.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions atrium-api/src/com/atproto/server/describe_server.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions lexicon/atrium-codegen/src/token_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,17 @@ fn lex_object_property(
}
);
let mut attributes = match property {
LexObjectProperty::Bytes(_) => quote! {
#[serde(with = "serde_bytes")]
},
LexObjectProperty::Bytes(_) => {
let default = if is_required {
quote!()
} else {
quote!(#[serde(default)])
};
quote! {
#default
#[serde(with = "serde_bytes")]
}
}
_ => quote!(),
};
if !is_required {
Expand Down

0 comments on commit 4bae693

Please sign in to comment.