Skip to content

Commit

Permalink
Refine schema so documentation generates as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnellis committed Dec 11, 2024
1 parent bcc6a84 commit abcba57
Showing 1 changed file with 30 additions and 24 deletions.
54 changes: 30 additions & 24 deletions internal/auth0/connection/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,36 +253,42 @@ var optionsSchema = &schema.Schema{
Description: "A map of scripts used to integrate with a custom database.",
},
"authentication_methods": {
Type: schema.TypeMap,
Optional: true,
Elem: &schema.Schema{
Type: schema.TypeList,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"passkey": {
Type: schema.TypeList,
Elem: &schema.Resource{Schema: map[string]*schema.Schema{
Description: "Specifies the authentication methods and their configuration (enabled or disabled)",
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"passkey": {
Description: "Configures passkey authentication",
Type: schema.TypeList,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"enabled": {
Type: schema.TypeBool,
Required: true,
Default: false,
Description: "Enables passkey authentication",
Type: schema.TypeBool,
Required: true,
Default: true,
},
}},
Required: true,
MaxItems: 1,
},
},
"password": {
Type: schema.TypeList,
Elem: &schema.Resource{Schema: map[string]*schema.Schema{
Required: true,
MaxItems: 1,
},
"password": {
Description: "Configures password authentication",
Type: schema.TypeList,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"enabled": {
Type: schema.TypeBool,
Required: true,
Default: true,
Description: "Enables password authentication",
Type: schema.TypeBool,
Required: true,
Default: true,
},
}},
Required: true,
MaxItems: 1,
},
},
Required: true,
MaxItems: 1,
},
},
},
Expand Down

0 comments on commit abcba57

Please sign in to comment.