Skip to content

Commit c4e568a

Browse files
schemaform moved to jsonx from providerkt (#2407)
Signed-off-by: Sarah Funkhouser <147884153+golanglemonade@users.noreply.github.com>
1 parent 693cd25 commit c4e568a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

internal/integrations/definitions/authentik/builder.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ package authentik
22

33
import (
44
"github.com/theopenlane/core/internal/ent/integrationgenerated"
5-
"github.com/theopenlane/core/internal/integrations/providerkit"
65
"github.com/theopenlane/core/internal/integrations/registry"
76
"github.com/theopenlane/core/internal/integrations/types"
7+
"github.com/theopenlane/core/pkg/jsonx"
88
)
99

1010
// Builder returns the Authentik definition builder
@@ -23,7 +23,7 @@ func Builder() registry.Builder {
2323
Visible: false,
2424
},
2525
UserInput: &types.UserInputRegistration{
26-
Schema: providerkit.SchemaFrom[UserInput](),
26+
Schema: jsonx.SchemaFrom[UserInput](),
2727
},
2828
CredentialRegistrations: []types.CredentialRegistration{
2929
{

internal/integrations/definitions/authentik/mappings_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func TestExamplePayloads(t *testing.T) {
125125
envelope := types.MappingEnvelope{Payload: json.RawMessage(payload)}
126126
mapped := mappingtest.EvalMap(t, accountSpec, envelope)
127127

128-
assert.Equal(t, "SERVICE", mapped["accountType"])
128+
assert.Equal(t, "SERVICE", mapped["accountType"])
129129
assert.Equal(t, "ACTIVE", mapped["status"])
130130
})
131-
}
131+
}

0 commit comments

Comments
 (0)