Skip to content

Commit

Permalink
chore: update content type schema docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tleguijt committed Jan 17, 2023
1 parent 84f47f0 commit 7d174ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
13 changes: 8 additions & 5 deletions amplience/resource_content_type_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,16 @@ func resourceContentTypeSchema() *schema.Resource {
},
Schema: map[string]*schema.Schema{
"body": {
Type: schema.TypeString,
Required: true,
Type: schema.TypeString,
Required: true,
Description: "JSON definition of the schema",
},
"schema_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateDiagFunc: ValidateDiagWrapper(validation.StringDoesNotContainAny(" ")),
Description: "Unique schema ID",
},
"validation_level": {
Type: schema.TypeString,
Expand All @@ -45,9 +47,10 @@ func resourceContentTypeSchema() *schema.Resource {
Computed: true,
},
"auto_sync": {
Type: schema.TypeBool,
Optional: true,
Default: false,
Type: schema.TypeBool,
Optional: true,
Default: false,
Description: "Enable if you want content types to be automatically synced when the schema gets updated",
},
},
}
Expand Down
5 changes: 3 additions & 2 deletions docs/resources/content_type_schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,13 @@ resource "amplience_content_type_schema" "tag" {

### Required

- **body** (String)
- **schema_id** (String)
- **body** (String) JSON definition of the schema
- **schema_id** (String) Unique schema ID
- **validation_level** (String)

### Optional

- **auto_sync** (Boolean) Enable if you want content types to be automatically synced when the schema gets updated
- **id** (String) The ID of this resource.

### Read-Only
Expand Down

0 comments on commit 7d174ee

Please sign in to comment.