Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: parse standalone types correctly #47

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

tenstad
Copy link
Contributor

@tenstad tenstad commented Aug 2, 2023

Standalone types was previously only parsed correctly if part of a struct, and parsed as a struct field.

Without the processor change, moving Rating to the top causes the following diff:

ERROR: outputs differ

| *`rating`* __xref:{anchor_prefix}-github-com-elastic-crd-re | | *`rating`* __Rating__ | Rating provided by the guest
                                                              <
                                                              <
                                                              <
[id="{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1-r <
==== Rating (string)                                          <
                                                              <
Rating is the rating provided by a guest.                     <
                                                              <
.Appears In:                                                  <
****                                                          <
- xref:{anchor_prefix}-github-com-elastic-crd-ref-docs-api-v1 <
****                                                          <

@thbkrkr thbkrkr added the bug Something isn't working label Aug 4, 2023
@thbkrkr
Copy link
Contributor

thbkrkr commented Aug 4, 2023

Thank you very much!

@thbkrkr thbkrkr merged commit cffe2b7 into elastic:master Aug 4, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants