Skip to content

Commit

Permalink
Merge pull request #48 from hashicorp/f-properties.arrayType
Browse files Browse the repository at this point in the history
Add support for `arrayType`
  • Loading branch information
ewbankkit authored Dec 19, 2022
2 parents 9c29791 + 971d961 commit c0f9b44
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v0.20.0 (Unreleased)

Support [`arrayType`](https://github.com/aws-cloudformation/cloudformation-resource-schema#arraytype).

## v0.19.0 (November 21, 2022)

The `Sanitize` function formats the JSON document using [`json.Indent`](https://pkg.go.dev/encoding/json#Indent) before sanitizing.
Expand Down
6 changes: 6 additions & 0 deletions property.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import (
"encoding/json"
)

const (
PropertyArrayTypeAttributeList = "AttributeList"
PropertyArrayTypeStandard = "Standard"
)

const (
PropertyFormatDate = "date"
PropertyFormatDateTime = "date-time"
Expand Down Expand Up @@ -39,6 +44,7 @@ type Property struct {
AdditionalProperties *bool `json:"additionalProperties,omitempty"`
AllOf []*PropertySubschema `json:"allOf,omitempty"`
AnyOf []*PropertySubschema `json:"anyOf,omitempty"`
ArrayType *string `json:"arrayType,omitempty"`
Comment *string `json:"$comment,omitempty"`
Default interface{} `json:"default,omitempty"`
Description *string `json:"description,omitempty"`
Expand Down

0 comments on commit c0f9b44

Please sign in to comment.