Skip to content

Commit

Permalink
Generate required properties as non-nullable (#160)
Browse files Browse the repository at this point in the history
* Generate required properties as non-nullable

* Add missing PropertyNameToCSharpSafeValue calls

* Workaround for lexicon bug

* Fix PWD being interpreted as a command rather than a variable on non-macOS Bash

* Fix non-nullable types were not matched for JsonConverter

* Update bindings

* Revert "Workaround for lexicon bug"

This reverts commit beeba28.
  • Loading branch information
alnkesq authored Jan 15, 2025
1 parent 45e1c99 commit 556b622
Show file tree
Hide file tree
Showing 597 changed files with 2,458 additions and 1,668 deletions.
20 changes: 10 additions & 10 deletions build_bindings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,30 +53,30 @@ do
target_dir="${username}-${repo_name}"
if [ "$target_dir" != "bluesky-social-atproto" ]; then
if [ "$target_dir" == "whtwnd-whitewind-blog" ]; then
REPO_DIRS+=("$(PWD)/../fflexicons/$target_dir/lexicons/com/whtwnd")
REPO_DIRS+=("$PWD/../fflexicons/$target_dir/lexicons/com/whtwnd")
elif [ "$target_dir" == "ziodotsh-lexicons" ]; then
REPO_DIRS+=("$(PWD)/../fflexicons/$target_dir/blue/zio")
REPO_DIRS+=("$PWD/../fflexicons/$target_dir/blue/zio")
elif [ "$target_dir" == "shinolabs-PinkSea" ]; then
REPO_DIRS+=("$(PWD)/../fflexicons/$target_dir/PinkSea.Lexicons/com")
REPO_DIRS+=("$PWD/../fflexicons/$target_dir/PinkSea.Lexicons/com")
elif [ "$target_dir" == "likeandscribe-frontpage" ]; then
REPO_DIRS+=("$(PWD)/../fflexicons/$target_dir/lexicons/fyi")
REPO_DIRS+=("$PWD/../fflexicons/$target_dir/lexicons/fyi")
elif [ "$target_dir" == "Gregoor-skylights" ]; then
REPO_DIRS+=("$(PWD)/../fflexicons/$target_dir/web/lexicons")
REPO_DIRS+=("$PWD/../fflexicons/$target_dir/web/lexicons")
elif [ "$target_dir" == "lexicon-community-lexicon" ]; then
REPO_DIRS+=("$(PWD)/../fflexicons/$target_dir/community/lexicon")
REPO_DIRS+=("$PWD/../fflexicons/$target_dir/community/lexicon")
elif [ "$target_dir" == "teal-fm-teal" ]; then
REPO_DIRS+=("$(PWD)/../fflexicons/$target_dir/packages/lexicons/real")
REPO_DIRS+=("$PWD/../fflexicons/$target_dir/packages/lexicons/real")
elif [ "$target_dir" == "icidasset-radical-edward" ]; then
REPO_DIRS+=("$(PWD)/../fflexicons/$target_dir/apps/byov/lexicons/ma/tokono/byov")
REPO_DIRS+=("$PWD/../fflexicons/$target_dir/apps/byov/lexicons/ma/tokono/byov")
else
REPO_DIRS+=("$(PWD)/../fflexicons/$target_dir/lexicons")
REPO_DIRS+=("$PWD/../fflexicons/$target_dir/lexicons")
fi
fi
done

# Build FFSourceGen
dotnet build tools/FFSourceGen/FFSourceGen.csproj
dotnet run --project tools/FFSourceGen/FFSourceGen.csproj -- generate $(PWD)/../fflexicons/bluesky-social-atproto/lexicons -o $(PWD)/src/FishyFlip/ -t "${REPO_DIRS[@]}"
dotnet run --project tools/FFSourceGen/FFSourceGen.csproj -- generate $PWD/../fflexicons/bluesky-social-atproto/lexicons -o $PWD/src/FishyFlip/ -t "${REPO_DIRS[@]}"

# Build FishyFlip to verify the bindings compile

Expand Down
3 changes: 2 additions & 1 deletion src/FishyFlip/Lexicon/ATErrorGenerator.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon
{
Expand Down
16 changes: 9 additions & 7 deletions src/FishyFlip/Lexicon/ATObject.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon
{
Expand All @@ -18,8 +19,8 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Actor.AdultContentPref), typeDiscriminator: "app.bsky.actor.defs#adultContentPref")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Repo.ApplyWritesInput), typeDiscriminator: "com.atproto.repo.applyWrites#ApplyWritesInput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Repo.ApplyWritesOutput), typeDiscriminator: "com.atproto.repo.applyWrites#ApplyWritesOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Server.AppPassword), typeDiscriminator: "com.atproto.server.listAppPasswords#appPassword")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Server.AppPasswordDef), typeDiscriminator: "com.atproto.server.createAppPassword#appPassword")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Server.AppPassword), typeDiscriminator: "com.atproto.server.createAppPassword#appPassword")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Server.AppPasswordDef), typeDiscriminator: "com.atproto.server.listAppPasswords#appPassword")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Embed.AspectRatio), typeDiscriminator: "app.bsky.embed.defs#aspectRatio")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Shinolabs.Pinksea.Author), typeDiscriminator: "com.shinolabs.pinksea.appViewDefs#author")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Chat.Bsky.Convo.BatchItem), typeDiscriminator: "chat.bsky.convo.sendMessageBatch#batchItem")]
Expand Down Expand Up @@ -123,8 +124,8 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Whtwnd.Blog.GetAuthorPostsOutput), typeDiscriminator: "com.whtwnd.blog.getAuthorPosts#GetAuthorPostsOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Shinolabs.Pinksea.GetAuthorRepliesOutput), typeDiscriminator: "com.shinolabs.pinksea.getAuthorReplies#GetAuthorRepliesOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Graph.GetBlocksOutput), typeDiscriminator: "app.bsky.graph.getBlocks#GetBlocksOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Tools.Ozone.Server.GetConfigOutput), typeDiscriminator: "tools.ozone.server.getConfig#GetConfigOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.GetConfigOutput), typeDiscriminator: "app.bsky.unspecced.getConfig#GetConfigOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Tools.Ozone.Server.GetConfigOutput), typeDiscriminator: "tools.ozone.server.getConfig#GetConfigOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Chat.Bsky.Convo.GetConvoForMembersOutput), typeDiscriminator: "chat.bsky.convo.getConvoForMembers#GetConvoForMembersOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Chat.Bsky.Convo.GetConvoOutput), typeDiscriminator: "chat.bsky.convo.getConvo#GetConvoOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Whtwnd.Blog.GetEntryMetadataByNameOutput), typeDiscriminator: "com.whtwnd.blog.getEntryMetadataByName#GetEntryMetadataByNameOutput")]
Expand Down Expand Up @@ -238,6 +239,7 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Graph.ListView), typeDiscriminator: "app.bsky.graph.defs#listView")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Graph.ListViewBasic), typeDiscriminator: "app.bsky.graph.defs#listViewBasic")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Graph.ListViewerState), typeDiscriminator: "app.bsky.graph.defs#listViewerState")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Blue.Zio.Atfile.Lock), typeDiscriminator: "blue.zio.atfile.lock")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Chat.Bsky.Convo.LogBeginConvo), typeDiscriminator: "chat.bsky.convo.defs#logBeginConvo")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Chat.Bsky.Convo.LogCreateMessage), typeDiscriminator: "chat.bsky.convo.defs#logCreateMessage")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Chat.Bsky.Convo.LogDeleteMessage), typeDiscriminator: "chat.bsky.convo.defs#logDeleteMessage")]
Expand Down Expand Up @@ -308,8 +310,8 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Actor.ProfileViewBasic), typeDiscriminator: "app.bsky.actor.defs#profileViewBasic")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Chat.Bsky.Actor.ProfileViewBasic), typeDiscriminator: "chat.bsky.actor.defs#profileViewBasic")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Actor.ProfileViewDetailed), typeDiscriminator: "app.bsky.actor.defs#profileViewDetailed")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Notification.PutPreferencesInput), typeDiscriminator: "app.bsky.notification.putPreferences#PutPreferencesInput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Actor.PutPreferencesInput), typeDiscriminator: "app.bsky.actor.putPreferences#PutPreferencesInput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Notification.PutPreferencesInput), typeDiscriminator: "app.bsky.notification.putPreferences#PutPreferencesInput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Repo.PutRecordInput), typeDiscriminator: "com.atproto.repo.putRecord#PutRecordInput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Repo.PutRecordOutput), typeDiscriminator: "com.atproto.repo.putRecord#PutRecordOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Tools.Ozone.Moderation.QueryEventsOutput), typeDiscriminator: "tools.ozone.moderation.queryEvents#QueryEventsOutput")]
Expand Down Expand Up @@ -360,8 +362,8 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Actor.SavedFeedsPref), typeDiscriminator: "app.bsky.actor.defs#savedFeedsPref")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Actor.SavedFeedsPrefV2), typeDiscriminator: "app.bsky.actor.defs#savedFeedsPrefV2")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Lexicon.Schema), typeDiscriminator: "com.atproto.lexicon.schema")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Tools.Ozone.Signature.SearchAccountsOutput), typeDiscriminator: "tools.ozone.signature.searchAccounts#SearchAccountsOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Com.Atproto.Admin.SearchAccountsOutput), typeDiscriminator: "com.atproto.admin.searchAccounts#SearchAccountsOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Tools.Ozone.Signature.SearchAccountsOutput), typeDiscriminator: "tools.ozone.signature.searchAccounts#SearchAccountsOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Actor.SearchActorsOutput), typeDiscriminator: "app.bsky.actor.searchActors#SearchActorsOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Unspecced.SearchActorsSkeletonOutput), typeDiscriminator: "app.bsky.unspecced.searchActorsSkeleton#SearchActorsSkeletonOutput")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Actor.SearchActorsTypeaheadOutput), typeDiscriminator: "app.bsky.actor.searchActorsTypeahead#SearchActorsTypeaheadOutput")]
Expand Down Expand Up @@ -446,8 +448,8 @@ namespace FishyFlip.Lexicon
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Embed.ViewBlocked), typeDiscriminator: "app.bsky.embed.record#viewBlocked")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Embed.ViewDetached), typeDiscriminator: "app.bsky.embed.record#viewDetached")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.Tools.Ozone.Server.ViewerConfig), typeDiscriminator: "tools.ozone.server.getConfig#viewerConfig")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Feed.ViewerState), typeDiscriminator: "app.bsky.feed.defs#viewerState")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Actor.ViewerState), typeDiscriminator: "app.bsky.actor.defs#viewerState")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Feed.ViewerState), typeDiscriminator: "app.bsky.feed.defs#viewerState")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Embed.ViewExternal), typeDiscriminator: "app.bsky.embed.external#view")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Embed.ViewExternalExternal), typeDiscriminator: "app.bsky.embed.external#viewExternal")]
[JsonDerivedType(typeof(FishyFlip.Lexicon.App.Bsky.Embed.ViewImage), typeDiscriminator: "app.bsky.embed.images#viewImage")]
Expand Down
3 changes: 2 additions & 1 deletion src/FishyFlip/Lexicon/ATProtocol.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

using FishyFlip.Lexicon.Com.Atproto.Repo;

Expand Down
3 changes: 2 additions & 1 deletion src/FishyFlip/Lexicon/App/Bsky/Actor/ActorEndpoints.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand Down
3 changes: 2 additions & 1 deletion src/FishyFlip/Lexicon/App/Bsky/Actor/ActorExtensions.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

using FishyFlip.Lexicon.Com.Atproto.Repo;

Expand Down
7 changes: 4 additions & 3 deletions src/FishyFlip/Lexicon/App/Bsky/Actor/AdultContentPref.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand All @@ -13,7 +14,7 @@ public partial class AdultContentPref : ATObject
/// Initializes a new instance of the <see cref="AdultContentPref"/> class.
/// </summary>
/// <param name="enabled"></param>
public AdultContentPref(bool? enabled = default)
public AdultContentPref(bool enabled = default)
{
this.Enabled = enabled;
}
Expand All @@ -40,7 +41,7 @@ public AdultContentPref(CBORObject obj)
/// </summary>
[JsonPropertyName("enabled")]
[JsonRequired]
public bool? Enabled { get; set; } = false;
public bool Enabled { get; set; } = false;

/// <summary>
/// Gets the ATRecord Type.
Expand Down
3 changes: 2 additions & 1 deletion src/FishyFlip/Lexicon/App/Bsky/Actor/BlueskyActor.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand All @@ -16,7 +17,7 @@ public partial class BskyAppProgressGuide : ATObject
/// Initializes a new instance of the <see cref="BskyAppProgressGuide"/> class.
/// </summary>
/// <param name="guide"></param>
public BskyAppProgressGuide(string? guide = default)
public BskyAppProgressGuide(string guide = default)
{
this.Guide = guide;
}
Expand All @@ -43,7 +44,7 @@ public BskyAppProgressGuide(CBORObject obj)
/// </summary>
[JsonPropertyName("guide")]
[JsonRequired]
public string? Guide { get; set; }
public string Guide { get; set; }

/// <summary>
/// Gets the ATRecord Type.
Expand Down
3 changes: 2 additions & 1 deletion src/FishyFlip/Lexicon/App/Bsky/Actor/BskyAppStatePref.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand Down
9 changes: 5 additions & 4 deletions src/FishyFlip/Lexicon/App/Bsky/Actor/ContentLabelPref.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand All @@ -21,7 +22,7 @@ public partial class ContentLabelPref : ATObject
/// warn <br/>
/// hide <br/>
/// </param>
public ContentLabelPref(FishyFlip.Models.ATDid? labelerDid = default, string? label = default, string? visibility = default)
public ContentLabelPref(FishyFlip.Models.ATDid? labelerDid = default, string label = default, string visibility = default)
{
this.LabelerDid = labelerDid;
this.Label = label;
Expand Down Expand Up @@ -60,7 +61,7 @@ public ContentLabelPref(CBORObject obj)
/// </summary>
[JsonPropertyName("label")]
[JsonRequired]
public string? Label { get; set; }
public string Label { get; set; }

/// <summary>
/// Gets or sets the visibility.
Expand All @@ -72,7 +73,7 @@ public ContentLabelPref(CBORObject obj)
/// </summary>
[JsonPropertyName("visibility")]
[JsonRequired]
public string? Visibility { get; set; }
public string Visibility { get; set; }

/// <summary>
/// Gets the ATRecord Type.
Expand Down
7 changes: 4 additions & 3 deletions src/FishyFlip/Lexicon/App/Bsky/Actor/FeedViewPref.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand All @@ -18,7 +19,7 @@ public partial class FeedViewPref : ATObject
/// <param name="hideRepliesByLikeCount">Hide replies in the feed if they do not have this number of likes.</param>
/// <param name="hideReposts">Hide reposts in the feed.</param>
/// <param name="hideQuotePosts">Hide quote posts in the feed.</param>
public FeedViewPref(string? feed = default, bool? hideReplies = default, bool? hideRepliesByUnfollowed = default, long? hideRepliesByLikeCount = default, bool? hideReposts = default, bool? hideQuotePosts = default)
public FeedViewPref(string feed = default, bool? hideReplies = default, bool? hideRepliesByUnfollowed = default, long? hideRepliesByLikeCount = default, bool? hideReposts = default, bool? hideQuotePosts = default)
{
this.Feed = feed;
this.HideReplies = hideReplies;
Expand Down Expand Up @@ -56,7 +57,7 @@ public FeedViewPref(CBORObject obj)
/// </summary>
[JsonPropertyName("feed")]
[JsonRequired]
public string? Feed { get; set; }
public string Feed { get; set; }

/// <summary>
/// Gets or sets the hideReplies.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand All @@ -15,7 +16,7 @@ public partial class GetPreferencesOutput : ATObject
/// <param name="preferences">
/// app.bsky.actor.defs#preferences <br/>
/// </param>
public GetPreferencesOutput(List<ATObject>? preferences = default)
public GetPreferencesOutput(List<ATObject> preferences = default)
{
this.Preferences = preferences;
}
Expand Down Expand Up @@ -43,7 +44,7 @@ public GetPreferencesOutput(CBORObject obj)
/// </summary>
[JsonPropertyName("preferences")]
[JsonRequired]
public List<ATObject>? Preferences { get; set; }
public List<ATObject> Preferences { get; set; }

/// <summary>
/// Gets the ATRecord Type.
Expand Down
7 changes: 4 additions & 3 deletions src/FishyFlip/Lexicon/App/Bsky/Actor/GetProfilesOutput.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand All @@ -13,7 +14,7 @@ public partial class GetProfilesOutput : ATObject
/// Initializes a new instance of the <see cref="GetProfilesOutput"/> class.
/// </summary>
/// <param name="profiles"></param>
public GetProfilesOutput(List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileViewDetailed>? profiles = default)
public GetProfilesOutput(List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileViewDetailed> profiles = default)
{
this.Profiles = profiles;
}
Expand All @@ -40,7 +41,7 @@ public GetProfilesOutput(CBORObject obj)
/// </summary>
[JsonPropertyName("profiles")]
[JsonRequired]
public List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileViewDetailed>? Profiles { get; set; }
public List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileViewDetailed> Profiles { get; set; }

/// <summary>
/// Gets the ATRecord Type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// This file was generated by FFSourceGen.
// Do not modify this file.

#nullable enable
#nullable enable annotations
#nullable disable warnings

namespace FishyFlip.Lexicon.App.Bsky.Actor
{
Expand All @@ -15,7 +16,7 @@ public partial class GetSuggestionsOutput : ATObject
/// <param name="cursor"></param>
/// <param name="actors"></param>
/// <param name="recId">Snowflake for this recommendation, use when submitting recommendation events.</param>
public GetSuggestionsOutput(string? cursor = default, List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileView>? actors = default, long? recId = default)
public GetSuggestionsOutput(string? cursor = default, List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileView> actors = default, long? recId = default)
{
this.Cursor = cursor;
this.Actors = actors;
Expand Down Expand Up @@ -52,7 +53,7 @@ public GetSuggestionsOutput(CBORObject obj)
/// </summary>
[JsonPropertyName("actors")]
[JsonRequired]
public List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileView>? Actors { get; set; }
public List<FishyFlip.Lexicon.App.Bsky.Actor.ProfileView> Actors { get; set; }

/// <summary>
/// Gets or sets the recId.
Expand Down
Loading

0 comments on commit 556b622

Please sign in to comment.