Skip to content

Commit

Permalink
GH-660: Prevent empty mobile block on client resource (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiught authored Jul 19, 2023
1 parent c9a431d commit e9412d1
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions internal/auth0/client/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,12 @@ func NewResource() *schema.Resource {
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"android": {
Type: schema.TypeList,
Optional: true,
Computed: true,
MaxItems: 1,
Description: "Configuration settings for Android native apps.",
Type: schema.TypeList,
Optional: true,
Computed: true,
MaxItems: 1,
Description: "Configuration settings for Android native apps.",
AtLeastOneOf: []string{"mobile.0.ios"},
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"app_package_name": {
Expand All @@ -283,11 +284,12 @@ func NewResource() *schema.Resource {
},
},
"ios": {
Type: schema.TypeList,
Optional: true,
Computed: true,
MaxItems: 1,
Description: "Configuration settings for i0S native apps.",
Type: schema.TypeList,
Optional: true,
Computed: true,
MaxItems: 1,
Description: "Configuration settings for i0S native apps.",
AtLeastOneOf: []string{"mobile.0.android"},
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"team_id": {
Expand Down

0 comments on commit e9412d1

Please sign in to comment.