diff --git a/test/api/v1/guestbook_types.go b/test/api/v1/guestbook_types.go index b6bdd17..f9a6705 100644 --- a/test/api/v1/guestbook_types.go +++ b/test/api/v1/guestbook_types.go @@ -36,6 +36,7 @@ type Embedded struct { type Embedded1 struct { Embedded2 `json:",inline"` E string `json:"e,omitempty"` + EmbeddedX `json:",inline"` } type Embedded2 struct { B string `json:"b,omitempty"` @@ -46,8 +47,7 @@ type Embedded3 struct { D string `json:"d,omitempty"` } type Embedded4 struct { - C string `json:"c,omitempty"` - EmbeddedX `json:",inline"` + C string `json:"c,omitempty"` } type EmbeddedX struct { X string `json:"x,omitempty"` diff --git a/test/config.yaml b/test/config.yaml index b7a0f7b..5879409 100644 --- a/test/config.yaml +++ b/test/config.yaml @@ -2,7 +2,7 @@ processor: ignoreGroupVersions: - "GVK" ignoreTypes: - - "Embedded[0-9]$" + - "Embedded[2-4]$" ignoreFields: - "status$" - "TypeMeta$" diff --git a/test/expected.asciidoc b/test/expected.asciidoc index 8eb6891..f99f8ad 100644 --- a/test/expected.asciidoc +++ b/test/expected.asciidoc @@ -66,11 +66,30 @@ Package v1 contains API Schema definitions for the webapp v1 API group | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. | | | *`a`* __string__ | | | -| *`b`* __string__ | | | -| *`c`* __string__ | | | +| *`e`* __string__ | | | | *`x`* __string__ | | | -| *`d`* __string__ | | | +|=== + + +[id="{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-embedded1"] +==== Embedded1 + + + + + + + +.Appears In: +**** +- xref:{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-embedded[$$Embedded$$] +**** + +[cols="20a,50a,15a,15a", options="header"] +|=== +| Field | Description | Default | Validation | *`e`* __string__ | | | +| *`x`* __string__ | | | |=== @@ -87,9 +106,6 @@ Package v1 contains API Schema definitions for the webapp v1 API group **** - xref:{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-embedded[$$Embedded$$] - xref:{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-embedded1[$$Embedded1$$] -- xref:{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-embedded2[$$Embedded2$$] -- xref:{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-embedded3[$$Embedded3$$] -- xref:{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-embedded4[$$Embedded4$$] **** [cols="20a,50a,15a,15a", options="header"] diff --git a/test/expected.md b/test/expected.md index e73b2dc..3b413a6 100644 --- a/test/expected.md +++ b/test/expected.md @@ -54,11 +54,25 @@ Package v1 contains API Schema definitions for the webapp v1 API group | `kind` _string_ | `Embedded` | | | | `metadata` _[ObjectMeta](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.25/#objectmeta-v1-meta)_ | Refer to Kubernetes API documentation for fields of `metadata`. | | | | `a` _string_ | | | | -| `b` _string_ | | | | -| `c` _string_ | | | | +| `e` _string_ | | | | | `x` _string_ | | | | -| `d` _string_ | | | | + + +#### Embedded1 + + + + + + + +_Appears in:_ +- [Embedded](#embedded) + +| Field | Description | Default | Validation | +| --- | --- | --- | --- | | `e` _string_ | | | | +| `x` _string_ | | | | #### EmbeddedX @@ -72,9 +86,6 @@ Package v1 contains API Schema definitions for the webapp v1 API group _Appears in:_ - [Embedded](#embedded) - [Embedded1](#embedded1) -- [Embedded2](#embedded2) -- [Embedded3](#embedded3) -- [Embedded4](#embedded4) | Field | Description | Default | Validation | | --- | --- | --- | --- |