-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup Components and IntegrationTest #105
Conversation
using Confix.Common.Exceptions; | ||
|
||
namespace Confix.Authoring.GraphQL.Components; | ||
|
||
[ExtendObjectType(OperationTypeNames.Mutation)] | ||
public sealed class ComponentMutations | ||
{ | ||
[Error(typeof(SchemaInvalidError))] | ||
[Error(typeof(ValueSchemaViolation))] | ||
[Error(typeof(UnauthorizedOperationException))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we not directly use the Exception here instead of wrapping it in an Error Object? @PascalSenn
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I approved but have a look at the comments
src/Backend/src/Authoring.Abstractions/Components/Models/ComponentScope.cs
Outdated
Show resolved
Hide resolved
IReadOnlyList<ComponentScope> scopes, | ||
IDictionary<string, object?>? values, | ||
JsonElement values, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a JsonDocument would actually be more correct here right?
TreatWarningsAsErrors
AnyType
->JsonType
Dictionary<string, object?>
-> JsonElementComponentState
part of #106