Skip to content

Commit

Permalink
Fix render newline and pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiodionisi authored and detro committed Jul 5, 2022
1 parent c0143dd commit fad3045
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
7 changes: 1 addition & 6 deletions schemamd/render.go
Expand Up @@ -523,12 +523,7 @@ func writeNestedAttributeChildren(w io.Writer, parents []string, nestedAttribute
}
}

_, err := io.WriteString(w, "\n")
if err != nil {
return err
}

err = writeNestedTypes(w, nestedTypes)
err := writeNestedTypes(w, nestedTypes)
if err != nil {
return err
}
Expand Down
15 changes: 9 additions & 6 deletions schemamd/testdata/awscc_acmpca_certificate.md
Expand Up @@ -49,23 +49,26 @@ Optional:
<a id="nestedatt--api_passthrough--extensions--certificate_policies"></a>
### Nested Schema for `api_passthrough.extensions.certificate_policies`

Optional:
Required:

- `cert_policy_id` (String) String that contains X.509 ObjectIdentifier information.

Optional:

- `policy_qualifiers` (Attributes List) (see [below for nested schema](#nestedatt--api_passthrough--extensions--certificate_policies--policy_qualifiers))

<a id="nestedatt--api_passthrough--extensions--certificate_policies--policy_qualifiers"></a>
### Nested Schema for `api_passthrough.extensions.certificate_policies.policy_qualifiers`

Optional:
Required:

- `policy_qualifier_id` (String)
- `qualifier` (Attributes) Structure that contains a X.509 policy qualifier. (see [below for nested schema](#nestedatt--api_passthrough--extensions--certificate_policies--policy_qualifiers--qualifier))

<a id="nestedatt--api_passthrough--extensions--certificate_policies--policy_qualifiers--qualifier"></a>
### Nested Schema for `api_passthrough.extensions.certificate_policies.policy_qualifiers.qualifier`

Optional:
Required:

- `cps_uri` (String)

Expand Down Expand Up @@ -135,7 +138,7 @@ Optional:
<a id="nestedatt--api_passthrough--extensions--subject_alternative_names--edi_party_name"></a>
### Nested Schema for `api_passthrough.extensions.subject_alternative_names.uniform_resource_identifier`

Optional:
Required:

- `name_assigner` (String)
- `party_name` (String)
Expand All @@ -144,7 +147,7 @@ Optional:
<a id="nestedatt--api_passthrough--extensions--subject_alternative_names--other_name"></a>
### Nested Schema for `api_passthrough.extensions.subject_alternative_names.uniform_resource_identifier`

Optional:
Required:

- `type_id` (String) String that contains X.509 ObjectIdentifier information.
- `value` (String)
Expand Down Expand Up @@ -177,7 +180,7 @@ Optional:
<a id="nestedatt--validity_not_before"></a>
### Nested Schema for `validity_not_before`

Optional:
Required:

- `type` (String)
- `value` (Number)
Expand Down

0 comments on commit fad3045

Please sign in to comment.